Home
last modified time | relevance | path

Searched refs:repodir (Results 1 – 18 of 18) sorted by relevance

/openbmc/openbmc/poky/scripts/
H A Doe-setup-layers22 def _is_repo_git_repo(repodir): argument
24 …curr_toplevel = subprocess.check_output("git -C %s rev-parse --show-toplevel" % repodir, shell=Tru…
25 if curr_toplevel.strip().decode("utf-8") == repodir:
31 def _is_repo_at_rev(repodir, rev): argument
33 …curr_rev = subprocess.check_output("git -C %s rev-parse HEAD" % repodir, shell=True, stderr=subpro…
40 def _is_repo_at_remote_uri(repodir, remote, uri): argument
42 …curr_uri = subprocess.check_output("git -C %s remote get-url %s" % (repodir, remote), shell=True, …
49 def _contains_submodules(repodir): argument
50 return os.path.exists(os.path.join(repodir,".gitmodules"))
69 repodir = os.path.abspath(os.path.join(args['destdir'], r_data['path']))
[all …]
H A Dcombo-layer39 def get_current_branch(repodir=None): argument
41 if not os.path.exists(os.path.join(repodir if repodir else '', ".git")):
44 branchname = runcmd("git symbolic-ref HEAD 2>/dev/null", repodir).strip()
480 def check_repo_clean(repodir): argument
485 output=runcmd("git status --porcelain", repodir)
489 logger.error("git repo %s is dirty, please fix it first", repodir)
546 def check_rev_branch(component, repodir, rev, branch): argument
548 actualbranch = runcmd("git branch --contains %s" % rev, repodir, printerr=False)
H A Dpatchtest50 "repodir": PatchtestParser.repodir,
192 git_status = os.popen("(cd %s && git status)" % PatchtestParser.repodir).read()
H A Dpatchtest.README87 … to use a different test suite or target repository, you can use the --testdir and --repodir flags:
89 patchtest --patch /path/to/patch/file --repodir /path/to/repo --testdir /path/to/test/dir
/openbmc/openbmc/meta-arm/ci/
H A Dupdate-repos38 repodir = base_repodir / repo_shortname(repo) variable
42 shutil.rmtree(repodir, ignore_errors=True)
44 if repodir.exists():
47 … subprocess.run(["git", "-C", repodir, "-c", "gc.autoDetach=false", "fetch"], check=True)
53 subprocess.run(["git", "clone", "--bare", repo, repodir], check=True)
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Drepo.py53 repodir = d.getVar("REPODIR") or (d.getVar("DL_DIR") + "/repo")
55 codir = os.path.join(repodir, gitsrcname, ud.manifest)
62 repodir = os.path.join(codir, "repo")
63 bb.utils.mkdirhier(repodir)
64 if not os.path.exists(os.path.join(repodir, ".repo")):
66 …" % (ud.basecmd, ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d, workdir=repodir)
69 runfetchcmd("%s sync" % ud.basecmd, d, workdir=repodir)
H A Dgomod.py226 repodir = os.path.join(rootdir, ud.parm['subdir'])
227 with open(repodir + '.info', 'wb') as f:
240 files = runfetchcmd(cmd, d, workdir=repodir).split()
249 subprocess.check_call(cmd, stdout=mf, cwd=repodir,
263 data = subprocess.check_output(cmd, cwd=repodir,
/openbmc/openbmc/poky/scripts/lib/devtool/
H A D__init__.py193 def setup_git_repo(repodir, version, devbranch, basetag='devtool-base', d=None): argument
199 if not os.path.exists(os.path.join(repodir, '.git')):
200 bb.process.run('git init', cwd=repodir)
201 bb.process.run('git config --local gc.autodetach 0', cwd=repodir)
202 bb.process.run('git add -f -A .', cwd=repodir)
206 stdout, _ = bb.process.run('git status --porcelain', cwd=repodir)
215 bb.process.run(commit_cmd, cwd=repodir)
218 gitinfodir = os.path.join(repodir, '.git', 'info')
236 bb.process.run('git checkout -b %s' % devbranch, cwd=repodir)
237 bb.process.run('git tag -f %s' % basetag, cwd=repodir)
[all …]
H A Dstandard.py379 def _git_ls_tree(repodir, treeish='HEAD', recursive=False): argument
385 out, _ = bb.process.run(cmd, cwd=repodir)
394 def _git_modified(repodir): argument
398 out, _ = bb.process.run(cmd, cwd=repodir)
/openbmc/openbmc/poky/bitbake/lib/bblayers/
H A Dlayerindex.py33 repodir = os.path.join(fetchdir, layername)
34 layerdir = os.path.join(repodir, subdir)
35 if not os.path.exists(repodir):
42 cmd.extend([url, repodir])
52 elif os.path.exists(repodir) and branch:
57 base_cmd = ['git', '--git-dir=%s/.git' % repodir, '--work-tree=%s' % repodir]
61 logger.error("Unable to validate repo %s (%s)" % (repodir, stderr))
68 logger.warning("There are uncommitted changes in repo %s" % repodir)
74 % (repodir, branch, completed_proc.stderr))
/openbmc/openbmc/poky/meta/lib/patchtest/
H A Drepo.py20 def __init__(self, patch, repodir, commit=None, branch=None): argument
21 self.repodir = repodir
22 self.repo = git.Repo.init(repodir)
/openbmc/openbmc/poky/scripts/contrib/
H A Dimage-manifest108 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)
[all …]
/openbmc/openbmc/poky/meta/lib/patchtest/tests/
H A Dbase.py153 scripts_path = os.path.join(PatchtestParser.repodir, "scripts", "lib")
230 os.path.abspath(PatchtestParser.repodir), patch.path
236 os.path.abspath(PatchtestParser.repodir), patch.path
242 os.path.abspath(PatchtestParser.repodir), patch.path
H A Dtest_mbox.py17 "cd %s; git log --pretty='%%h#%%aN#%%cD:#%%s' -1" % PatchtestParser.repodir,
/openbmc/openbmc/poky/scripts/lib/
H A Dscriptutils.py102 def git_convert_standalone_clone(repodir): argument
105 if os.path.exists(os.path.join(repodir, '.git')):
106 alternatesfile = os.path.join(repodir, '.git', 'objects', 'info', 'alternates')
110 bb.process.run('git repack -a', cwd=repodir)
/openbmc/openbmc/poky/meta/lib/patchtest/selftest/
H A Dselftest19 repodir = os.path.dirname(os.path.dirname(parentdir)) variable
41 …cmd = 'patchtest --base-commit HEAD --repodir %s --testdir %s/tests --patch %s' % (repodir, to…
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dgitpkgv.bbclass88 vars = { 'repodir' : quote(url.localpath),
96 "git --git-dir=%(repodir)s rev-list %(rev)s -- 2>/dev/null | wc -l"
112 … "git --git-dir=%(repodir)s describe %(rev)s --tags --exact-match 2>/dev/null"
/openbmc/openbmc/poky/documentation/contributor-guide/
H A Dsubmit-changes.rst348 a different set of tests, you can use the ``--repodir`` and ``--testdir``
351 patchtest --patch <patch_name> --repodir <path/to/repo> --testdir <path/to/testdir>