Skip to content

Commit

Permalink
Merge pull request #13 from liamg/liamg-final-traversal-fix
Browse files Browse the repository at this point in the history
Update retriever.go
  • Loading branch information
liamg authored Mar 29, 2021
2 parents 4a9071c + ad8b2b6 commit ca1b894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/gitjacker/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (r *retriever) parsePackMetadata(meta []byte) error {
for _, line := range lines {
parts := strings.Split(strings.TrimSpace(line), " ")
if parts[0] == "P" && len(parts) == 2 {
packPath := filepath.Join(r.outputDir, ".git", "objects", "pack", filepath.FromSlash(filepath.Clean("/"+parts[1])))
packPath := filepath.Join("objects", "pack", filepath.FromSlash(filepath.Clean("/"+parts[1])))
if err := r.downloadFile(packPath); err != nil {
logrus.Debugf("Failed to retrieve pack file %s: %s", parts[1], err)
}
Expand Down

0 comments on commit ca1b894

Please # to comment.