Skip to content

Commit

Permalink
Revert "Revert "feat: clone bare repositories without blobs (italia#269
Browse files Browse the repository at this point in the history
…)""

This reverts commit fda193f.
  • Loading branch information
bfabio committed Mar 2, 2023
1 parent fda193f commit effae51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions git/clone_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ func CloneRepository(hostname, name, gitURL, index string) error {
return nil
}

// Clone the repository using the external command "git".
// Command is: git clone -b <branch> <remote_repo>
out, err := exec.Command("git", "clone", gitURL, path).CombinedOutput() // nolint: gas
out, err := exec.Command("git", "clone", "--filter=blob:none", "--mirror", gitURL, path).CombinedOutput()
if err != nil {
return fmt.Errorf("cannot git clone the repository: %s: %s", err.Error(), out)
}
Expand Down

0 comments on commit effae51

Please sign in to comment.