Lines Matching refs:git
8 """Parse a DEPS file and git checkout all of the dependencies.
14 GIT_EXECUTABLE: path to "git" binary; if unset, will look for one of
15 ['git', 'git.exe', 'git.bat'] in your default path.
22 Git Config:
25 git config sync-deps.disable true
29 git config --unset sync-deps.disable
58 def git_repository_sync_is_disabled(git, directory):
61 [git, 'config', 'sync-deps.disable'], cwd=directory)
67 def is_git_toplevel(git, directory):
68 """Return true iff the directory is the top level of a Git repository.
71 git (string) the git executable
78 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
84 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose):
85 """Checkout (and clone if needed) a Git repository.
88 git (string) the git executable
91 for passing to `git clone`.
94 passing to `git checkout`
101 Raises an exception if any calls to git fail.
105 [git, 'clone', '--quiet', repo, directory])
107 if not is_git_toplevel(git, directory):
108 # if the directory exists, but isn't a git repo, you will modify
110 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
114 if git_repository_sync_is_disabled(git, directory):
118 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
121 [git, 'checkout', '--quiet', checkoutable], cwd=directory)
149 Raises DepsError exception and git Exceptions.
151 git = git_executable()
152 assert git
175 (git, repo, checkoutable, relative_directory, verbose))