mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
git-worktree: handle upstream force push
See https://github.com/rust-lang/crates.io-index/commit/8bb596f3f1
This commit is contained in:
parent
40c1711615
commit
50718ecb0f
@ -34,7 +34,7 @@ function checkout_branch() {
|
||||
$git_option clone "$repo_dir" --branch "$branch" --single-branch "$work_tree"
|
||||
else
|
||||
cd "$work_tree"
|
||||
$git_option pull
|
||||
$git_option checkout -B "$branch" "origin/$branch"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user