Lines Matching refs:directory

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()
97 return os.path.realpath(directory) == os.path.realpath(toplevel)
102 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose): argument
121 if not os.path.isdir(directory):
123 [git, 'clone', '--quiet', repo, directory])
125 if not is_git_toplevel(git, directory):
128 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
132 if git_repository_sync_is_disabled(git, directory):
133 sys.stdout.write('%s\n SYNC IS DISABLED.\n' % directory)
137 [git, 'checkout', '--quiet', checkoutable], cwd=directory):
140 sys.stdout.write('%s\n @ %s\n' % (directory, checkoutable))
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)
153 sys.stdout.write('%s\n @ %s\n' % (directory, checkoutable)) # Success.
186 for directory in dependencies:
187 if '@' in dependencies[directory]:
188 repo, checkoutable = dependencies[directory].split('@', 1)
192 relative_directory = os.path.join(deps_file_directory, directory)
199 for directory in deps_file.get('recursedeps', []):
200 recursive_path = os.path.join(deps_file_directory, directory, 'DEPS')