added separator after ref to remove git reset --soft ambiguity

This commit is contained in:
AlanZhang2002 2025-04-29 10:29:16 -07:00
parent 913a6be647
commit 21fce7f2a1
1 changed files with 1 additions and 1 deletions

View File

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