Lines Matching +full:- +full:- +full:fail +full:- +full:env +full:- +full:changed
1 #!/usr/bin/env python
4 # Use of this source code is governed by a BSD-style license that can be
20 GIT_SYNC_DEPS_QUIET: if set to non-empty string, suppress messages.
25 git config sync-deps.disable true
27 To re-enable sync:
29 git config --unset sync-deps.disable
52 subprocess.call([git, '--version'], stdout=devnull)
79 [git, 'config', 'sync-deps.disable'], cwd=directory)
96 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
104 return s if len(s) <= length else s[:(length - 3)] + '...'
108 sys.stdout.write('%-*s @ %s\n' % (dlen, directory, checkoutable))
128 Raises an exception if any calls to git fail.
132 [git, 'clone', '--quiet', repo, directory])
137 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
148 if 0 == subprocess.call([git, 'checkout', '--quiet', checkoutable],
155 # If the repo has changed, always force use of the correct repo.
156 # If origin already points to repo, this is a quick no-op.
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)
198 # Add OS-specific dependencies
241 if '--help' in argv or '-h' in argv:
248 os.path.join(os.path.dirname(deps_file_path), 'bin', 'fetch-gn')])