Lines Matching refs:git
50 for git in searchlist:
52 subprocess.call([git, '--version'], stdout=devnull)
55 return git
76 def git_repository_sync_is_disabled(git, directory): argument
79 [git, 'config', 'sync-deps.disable'], cwd=directory)
85 def is_git_toplevel(git, directory): argument
96 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
111 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose): argument
132 [git, 'clone', '--quiet', repo, directory])
134 if not is_git_toplevel(git, directory):
141 if git_repository_sync_is_disabled(git, directory):
148 if 0 == subprocess.call([git, 'checkout', '--quiet', checkoutable],
158 [git, 'remote', 'set-url', 'origin', repo], cwd=directory)
160 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
162 subprocess.check_call([git, 'checkout', '--quiet', checkoutable], cwd=directory)
186 git = git_executable()
187 assert git
219 (git, repo, checkoutable, relative_directory, verbose))