mirror of
https://github.com/gabrie30/ghorg.git
synced 2026-05-05 20:06:09 +02:00
Use '--' to separate paths from revisions (#509)
This commit is contained in:
parent
130476f6ad
commit
c3a68ba688
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user