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