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()
102 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose): argument
123 [git, 'clone', '--quiet', repo, directory])
125 if not is_git_toplevel(git, directory):
132 if git_repository_sync_is_disabled(git, directory):
137 [git, 'checkout', '--quiet', checkoutable], cwd=directory):
143 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
146 [git, 'checkout', '--quiet', checkoutable], cwd=directory):
148 [git, 'remote', 'set-url', 'origin', repo], cwd=directory)
149 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
150 subprocess.check_call([git, 'checkout', '--quiet'], cwd=directory)
174 git = git_executable()
175 assert git
195 (git, repo, checkoutable, relative_directory, verbose))