mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
utils: Ensure updates on the remote branch are applied for revison==HEAD
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
143e226c56
commit
fde1417b5d
|
@ -126,6 +126,8 @@ def fetchgitrepo(clonedir, repo, params, stashdir):
|
||||||
subprocess.check_call(["git", "clone", params["url"], sharedrepo])
|
subprocess.check_call(["git", "clone", params["url"], sharedrepo])
|
||||||
|
|
||||||
subprocess.check_call(["git", "checkout", branch], cwd=sharedrepo)
|
subprocess.check_call(["git", "checkout", branch], cwd=sharedrepo)
|
||||||
|
# git reset revision==HEAD won't help, we need to reset onto the potentially fetched origin branch
|
||||||
|
subprocess.check_call(["git", "reset", "origin/" + branch, "--hard"], cwd=sharedrepo)
|
||||||
subprocess.check_call(["git", "reset", revision, "--hard"], cwd=sharedrepo)
|
subprocess.check_call(["git", "reset", revision, "--hard"], cwd=sharedrepo)
|
||||||
|
|
||||||
def publishrepo(clonedir, repo, publishdir):
|
def publishrepo(clonedir, repo, publishdir):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user