From c3a68ba688bab1afe65f760ec5daf45ccc07d63f Mon Sep 17 00:00:00 2001 From: Elmar Fasel Date: Wed, 9 Apr 2025 03:12:07 +0200 Subject: [PATCH] Use '--' to separate paths from revisions (#509) --- git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/git.go b/git/git.go index 4767f2ee..7254b197 100644 --- a/git/git.go +++ b/git/git.go @@ -250,7 +250,7 @@ func (g GitClient) ShortStatus(repo scm.Repo) (string, error) { } func (g GitClient) RepoCommitCount(repo scm.Repo) (int, error) { - args := []string{"rev-list", "--count", repo.CloneBranch} + args := []string{"rev-list", "--count", repo.CloneBranch, "--"} cmd := exec.Command("git", args...) cmd.Dir = repo.HostPath