Lines Matching +full:- +full:- +full:disable +full:- +full:verbose
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.
23 To disable syncing of a single repository:
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)
78 disable = subprocess.check_output(
79 [git, 'config', 'sync-deps.disable'], cwd=directory)
80 return disable.lower().strip() in ['true', '1', 'yes', 'on']
96 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
105 return s if len(s) <= length else '...' + s[-(length-3):]
107 return s if len(s) <= length else s[:(length - 3)] + '...'
113 sys.stdout.write('%-*s %s %s\n' % (dlen, directory, symbol, commithash))
116 def git_checkout_to_directory(git, repo, commithash, directory, shallow, verbose): argument
130 verbose (boolean)
136 [git, 'clone', '--quiet', *(['--depth=1'] if shallow else []),
137 '--no-checkout', repo, directory])
142 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
153 if 0 == subprocess.call([git, 'checkout', '--quiet', commithash],
156 if verbose:
161 # If origin already points to repo, this is a quick no-op.
163 [git, 'remote', 'set-url', 'origin', repo], cwd=directory)
166 [git, 'fetch', '--quiet',
167 *(['--depth=1', repo, commithash] if shallow else [])],
170 subprocess.check_call([git, 'checkout', '--quiet', commithash], cwd=directory)
172 if verbose:
188 def git_sync_deps(deps_file_path, command_line_os_requests, shallow, verbose): argument
212 # Add OS-specific dependencies
222 if verbose:
235 (git, repo, commithash, relative_directory, shallow, verbose))
259 verbose = not bool(os.environ.get('GIT_SYNC_DEPS_QUIET', False))
261 shallow = not ('--deep' in argv)
263 if '--help' in argv or '-h' in argv:
267 git_sync_deps(deps_file_path, argv, shallow, verbose)
270 os.path.join(os.path.dirname(deps_file_path), 'bin', 'fetch-gn')])
274 os.path.join(os.path.dirname(deps_file_path), 'bin', 'activate-emsdk')])