fix error: cannot lock ref
@@ -69,6 +69,7 @@ def open_git_feed(toolchain_name, feed_url, name=None, branch="master", first_pa
if os.path.exists(git_path):
git.call("remote", "set-url", "origin", feed_url)
git.call("fetch", "origin", "--quiet")
+ git.call("remote", "prune", "origin")
git.call("reset", "--hard", "--quiet", "origin/%s" % branch)
else:
git.clone(feed_url, "--quiet", "--branch", branch)
