Revert "fix: dont throw away changes"

This reverts commit dd0f328a65.

Part of coop-cloud/organising#282.
This commit is contained in:
2021-12-12 02:04:13 +01:00
parent 48e16c414c
commit d087a60e09
3 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,7 @@ func EnsureUpToDate(dir string) error {
refName := fmt.Sprintf("refs/heads/%s", branch)
checkOutOpts := &git.CheckoutOptions{
Create: false,
Keep: true,
Force: true,
Branch: plumbing.ReferenceName(refName),
}
if err := worktree.Checkout(checkOutOpts); err != nil {