summaryrefslogtreecommitdiffstats
path: root/modules/indexer/stats/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/indexer/stats/db.go')
-rw-r--r--modules/indexer/stats/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go
index 3935c3ba75..976bf2d632 100644
--- a/modules/indexer/stats/db.go
+++ b/modules/indexer/stats/db.go
@@ -38,7 +38,7 @@ func (db *DBIndexer) Index(id int64) error {
// Get latest commit for default branch
commitID, err := gitRepo.GetBranchCommitID(repo.DefaultBranch)
if err != nil {
- if git.IsErrBranchNotExist(err) {
+ if git.IsErrBranchNotExist(err) || git.IsErrNotExist((err)) {
log.Debug("Unable to get commit ID for defaultbranch %s in %s ... skipping this repository", repo.DefaultBranch, repo.RepoPath())
return nil
}