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.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/tree_entry.go b/vendor/code.gitea.io/git/tree_entry.go
index 079dfddd63..f3b0603456 100644
--- a/vendor/code.gitea.io/git/tree_entry.go
+++ b/vendor/code.gitea.io/git/tree_entry.go
@@ -5,6 +5,7 @@
package git
import (
+ "fmt"
"os"
"path/filepath"
"sort"
@@ -254,6 +255,12 @@ func getNextCommitInfos(state *getCommitInfoState) error {
if path == "" {
break
}
+ if path[0] == '"' {
+ path, err = strconv.Unquote(path)
+ if err != nil {
+ return fmt.Errorf("Unquote: %v", err)
+ }
+ }
state.update(path)
}
i++ // skip blank line