diff --git a/bots-common/git_utils.go b/bots-common/git_utils.go index b4110f2..a2679d5 100644 --- a/bots-common/git_utils.go +++ b/bots-common/git_utils.go @@ -369,6 +369,13 @@ func parseGitCommit(data <-chan byte) (commit, error) { func parseTreeEntry(data <-chan byte) (tree_entry, error) { var e tree_entry + for c:=<-data; c != ' '; c=<-data { + e.mode = e.mode * 8 + (c - '0') + } + for c:=<-data; c != '\x00'; c=<-data { + e.name = append(e.name, c) + } + return e, nil }