Lines Matching refs:path
24 _path = os.path.realpath(__file__ + '/../..')
25 if sys.path[0] != _path:
26 sys.path.insert(0, _path)
95 def get_file_content(commit, path): argument
105 cmd = ['git', 'show', '%s:%s' % (commit, path)]
135 def raw_diff(path, target): argument
148 diff = rh.utils.run(cmd, cwd=path, capture_output=True).stdout
187 def find_repo_root(path=None): argument
189 if path is None:
190 path = os.getcwd()
191 orig_path = path
193 path = os.path.abspath(path)
194 while not os.path.exists(os.path.join(path, '.repo')):
195 path = os.path.dirname(path)
196 if path == '/':
199 return path
202 def is_git_repository(path): argument
204 cmd = ['git', 'rev-parse', '--resolve-git-dir', os.path.join(path, '.git')]