summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/tree_entry.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-17 20:30:23 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-18 08:30:23 +0800
commit6e452c4da7400495b3298c3c9477378249c9cd9e (patch)
tree53e9ba31fe61af79921ae5b53c8fa1527c88982e /vendor/code.gitea.io/git/tree_entry.go
parentb7812be33ae801e726350d3c852b75b29b1ab0e7 (diff)
downloadgitea-6e452c4da7400495b3298c3c9477378249c9cd9e.tar.gz
gitea-6e452c4da7400495b3298c3c9477378249c9cd9e.zip
Update code.gitea.io/git (#1998)
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