Lines Matching refs:repodir
108 def get_git_remote_branch(repodir): argument
110 …= bb.process.run(['git', 'rev-parse', '--abbrev-ref', '--symbolic-full-name', '@{u}'], cwd=repodir)
118 def get_git_head_commit(repodir): argument
120 stdout, _ = bb.process.run(['git', 'rev-parse', 'HEAD'], cwd=repodir)
128 def get_git_repo_url(repodir, remote='origin'): argument
132 stdout, _ = bb.process.run(['git', 'remote', '-v'], cwd=repodir)
158 repodir = find_git_repo(layerdir)
159 if repodir:
160 remotebranch = get_git_remote_branch(repodir)
166 layerdata['vcs_url'] = get_git_repo_url(repodir, remote)
167 if os.path.abspath(repodir) != os.path.abspath(layerdir):
168 layerdata['vcs_subdir'] = os.path.relpath(layerdir, repodir)
169 commit = get_git_head_commit(repodir)