mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
utils: Ensure fetchgitrepo fetches revisions as well as tags
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
54b70f1a52
commit
c8e4cc8483
|
@ -120,6 +120,7 @@ def fetchgitrepo(clonedir, repo, params, stashdir):
|
||||||
subprocess.check_call(["git", "clone", "file://%s/%s" % (stashdir, repo), "%s/%s" % (clonedir, repo)])
|
subprocess.check_call(["git", "clone", "file://%s/%s" % (stashdir, repo), "%s/%s" % (clonedir, repo)])
|
||||||
subprocess.check_call(["git", "remote", "rm", "origin"], cwd=sharedrepo)
|
subprocess.check_call(["git", "remote", "rm", "origin"], cwd=sharedrepo)
|
||||||
subprocess.check_call(["git", "remote", "add", "origin", params["url"]], cwd=sharedrepo)
|
subprocess.check_call(["git", "remote", "add", "origin", params["url"]], cwd=sharedrepo)
|
||||||
|
subprocess.check_call(["git", "fetch", "origin"], cwd=sharedrepo)
|
||||||
subprocess.check_call(["git", "fetch", "origin", "-t"], cwd=sharedrepo)
|
subprocess.check_call(["git", "fetch", "origin", "-t"], cwd=sharedrepo)
|
||||||
else:
|
else:
|
||||||
subprocess.check_call(["git", "clone", params["url"], sharedrepo])
|
subprocess.check_call(["git", "clone", params["url"], sharedrepo])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user