summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/tree_entry.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/code.gitea.io/git/tree_entry.go')
-rw-r--r--vendor/code.gitea.io/git/tree_entry.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/code.gitea.io/git/tree_entry.go b/vendor/code.gitea.io/git/tree_entry.go
index 4c69002f4f..7ea4d211a7 100644
--- a/vendor/code.gitea.io/git/tree_entry.go
+++ b/vendor/code.gitea.io/git/tree_entry.go
@@ -264,7 +264,9 @@ func getNextCommitInfos(state *getCommitInfoState) error {
return fmt.Errorf("Unquote: %v", err)
}
}
- state.update(entryPath)
+ if err = state.update(entryPath); err != nil {
+ return err
+ }
}
i++ // skip blank line
if len(state.entries) == len(state.commits) {