Skip to content

Commit 21fce7f

Browse files
committed
added separator after ref to remove git reset --soft ambiguity
1 parent 913a6be commit 21fce7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ func (git *repoSync) SyncRepo(ctx context.Context, refreshCreds func(context.Con
17801780
// Reset the repo (note: not the worktree - that happens later) to the new
17811781
// ref. This makes subsequent fetches much less expensive. It uses --soft
17821782
// so no files are checked out.
1783-
if _, _, err := git.Run(ctx, git.root, "reset", "--soft", remoteHash); err != nil {
1783+
if _, _, err := git.Run(ctx, git.root, "reset", "--soft", remoteHash, "--"); err != nil {
17841784
return false, "", err
17851785
}
17861786

0 commit comments

Comments
 (0)