Imported the current revision of the git-repocache scripts.