We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e709bc1 commit dfa4e58Copy full SHA for dfa4e58
modules/git/repo.go
@@ -86,7 +86,7 @@ func (repo *Repository) IsEmpty() (bool, error) {
86
Stdout: &output,
87
Stderr: &errbuf,
88
}); err != nil {
89
- if (err.Error() == "exit status 1" || err.Error() == "exit status 129") && strings.TrimSpace(errbuf.String()) == "" {
+ if (err.Error() == "exit status 1" && strings.TrimSpace(errbuf.String()) == "") || err.Error() == "exit status 129" {
90
// git 2.11 exits with 129 if the repo is empty
91
return true, nil
92
}
0 commit comments