From eac258b7597f4ae3c77af348fcc5a4c9b5108d08 Mon Sep 17 00:00:00 2001 From: AlanZhang2002 Date: Tue, 29 Apr 2025 09:24:32 -0700 Subject: [PATCH] added separator after ref to remove git reset --soft ambiguity --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ae0a5bb..95dbec7 100644 --- a/main.go +++ b/main.go @@ -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 }