Lines Matching refs:ldir
204 ldir = repo['local_repo_dir']
206 runcmd("git fetch", ldir)
207 lastrev = runcmd('git rev-parse origin/%s' % branch, ldir).strip()
217 ldir = conf.repos[name]['local_repo_dir']
218 if not os.path.exists(ldir):
219 logger.info("cloning %s to %s" %(conf.repos[name]['src_uri'], ldir))
220 … subprocess.check_call("git clone %s %s" % (conf.repos[name]['src_uri'], ldir), shell=True)
230 ldir = repo['local_repo_dir']
236 if not check_rev_branch(name, ldir, lastrev, branch):
245 rev = runcmd('git rev-parse %s' % initialrev, ldir).strip()
248 refs = runcmd('git show-ref -s %s' % initialrev, ldir).split('\n')
271 def copy_selected_files(initialrev, extract_dir, file_filter, exclude_patterns, ldir, argument
296 ldir)
311 copy_selected_files(initialrev, extract_dir, file_filter, exclude_patterns, ldir)
316 runcmd("git branch -f %s %s" % (refname, initialrev), ldir)
317 runcmd("git fetch %s %s" % (ldir, refname))
318 runcmd("git branch -D %s" % refname, ldir)
335 … rev = runcmd('git log --oneline --no-abbrev-commit -n1 %s' % rev, ldir).split()[0]
422 lastrev = runcmd('git rev-parse %s' % initialrev, ldir).strip()
598 ldir = repo['local_repo_dir']
600 logger.info("update branch %s of component repo %s in %s ..." % (branch, name, ldir))
607 runcmd("git checkout %s" % branch, ldir, printerr=False)
609 output=runcmd("git fetch", ldir)
611 runcmd("git checkout %s" % branch, ldir)
612 runcmd("git pull --ff-only", ldir)
614 output=runcmd("git pull --ff-only", ldir)
617 output=runcmd("git fetch", ldir)
619 runcmd("git checkout %s" % branch, ldir)
620 runcmd("git reset --hard FETCH_HEAD", ldir)
680 ldir = repo['local_repo_dir']
688 if not check_rev_branch(name, ldir, top_revision, branch):
699 if not check_rev_branch(name, ldir, repo['last_revision'], branch):
715 output = runcmd(patch_cmd, ldir)
720 revlist = runcmd(rev_cmd, ldir).splitlines()
805 ldir = conf.repos[name]['local_repo_dir']
807 branchrev = runcmd("git rev-parse %s" % branch, ldir).strip()
853 len(runcmd("git show --pretty=format:%%P --no-patch %s" % branch, ldir).split()) > 1:
968 ldir = repo['local_repo_dir']
972 largs = {"destdir": ldir, "env": None}
1020 if not check_rev_branch(name, ldir, top_revision, branch):
1029 if not check_rev_branch(name, ldir, last_revision, branch):