|
|
@ -72,7 +72,7 @@ func FindLFSFile(repo *git.Repository, hash git.SHA1) ([]*LFSResult, error) {
|
|
|
|
|
|
|
|
|
|
|
|
fnameBuf := make([]byte, 4096)
|
|
|
|
fnameBuf := make([]byte, 4096)
|
|
|
|
modeBuf := make([]byte, 40)
|
|
|
|
modeBuf := make([]byte, 40)
|
|
|
|
workingShaBuf := make([]byte, 40)
|
|
|
|
workingShaBuf := make([]byte, 20)
|
|
|
|
|
|
|
|
|
|
|
|
for scan.Scan() {
|
|
|
|
for scan.Scan() {
|
|
|
|
// Get the next commit ID
|
|
|
|
// Get the next commit ID
|
|
|
@ -140,7 +140,9 @@ func FindLFSFile(repo *git.Repository, hash git.SHA1) ([]*LFSResult, error) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
resultsMap[curCommit.ID.String()+":"+curPath+string(fname)] = &result
|
|
|
|
resultsMap[curCommit.ID.String()+":"+curPath+string(fname)] = &result
|
|
|
|
} else if string(mode) == git.EntryModeTree.String() {
|
|
|
|
} else if string(mode) == git.EntryModeTree.String() {
|
|
|
|
trees = append(trees, git.To40ByteSHA(sha20byte))
|
|
|
|
sha40Byte := make([]byte, 40)
|
|
|
|
|
|
|
|
git.To40ByteSHA(sha20byte, sha40Byte)
|
|
|
|
|
|
|
|
trees = append(trees, sha40Byte)
|
|
|
|
paths = append(paths, curPath+string(fname)+"/")
|
|
|
|
paths = append(paths, curPath+string(fname)+"/")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|