fix error: cannot lock ref during worktree sync
@@ -280,6 +280,7 @@ Please run `qisrc init MANIFEST_URL`
""" Sync Git """
git = qisrc.git.Git(repo)
git.set_remote("origin", url)
+ git.call("remote", "prune", "origin")
if git.get_current_branch() != branch:
git.checkout("-B", branch)
with git.transaction() as transaction:
