forked from toolshed/abra
Revert "fix: dont throw away changes"
This reverts commit dd0f328a65
.
Part of coop-cloud/organising#282.
This commit is contained in:
@ -169,7 +169,7 @@ func EnsureVersion(recipeName, version string) error {
|
||||
opts := &git.CheckoutOptions{
|
||||
Branch: tagRef,
|
||||
Create: false,
|
||||
Keep: true,
|
||||
Force: true,
|
||||
}
|
||||
if err := worktree.Checkout(opts); err != nil {
|
||||
return err
|
||||
@ -221,7 +221,7 @@ func EnsureLatest(recipeName string) error {
|
||||
refName := fmt.Sprintf("refs/heads/%s", branch)
|
||||
checkOutOpts := &git.CheckoutOptions{
|
||||
Create: false,
|
||||
Keep: true,
|
||||
Force: true,
|
||||
Branch: plumbing.ReferenceName(refName),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user