Skip to content

Commit

Permalink
fix clone
Browse files Browse the repository at this point in the history
  • Loading branch information
poolpOrg committed Oct 16, 2023
1 parent 6fb043e commit 2cf5fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/plakar/cmd_clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func cmd_clone(ctx Plakar, repository *storage.Repository, args []string) int {
return 1
}

cloneRepository.SetSecret(sourceRepository.GetSecret())

// XXX - this can be parallelized
for _, indexID := range indexes {
metadataBytes, err := sourceRepository.GetMetadata(indexID)
Expand Down
2 changes: 2 additions & 0 deletions cmd/plakar/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func getIndexes(repository *storage.Repository, prefixes []string) ([]*index.Ind

md, _, err := snapshot.GetMetadata(repository, snapshotUuid)
if err != nil {
fmt.Println("###1")
return nil, err
}

Expand All @@ -239,6 +240,7 @@ func getIndexes(repository *storage.Repository, prefixes []string) ([]*index.Ind

index, _, err := snapshot.GetIndex(repository, indexChecksum32)
if err != nil {
fmt.Println("###2")
return nil, err
}
result = append(result, index)
Expand Down

0 comments on commit 2cf5fdb

Please sign in to comment.