Skip to content

Commit

Permalink
Revert "feat: clone bare repositories without blobs (italia#269)"
Browse files Browse the repository at this point in the history
This reverts commit 7238d10.
  • Loading branch information
bfabio committed Mar 2, 2023
1 parent fddfa72 commit fda193f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git/clone_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ func CloneRepository(hostname, name, gitURL, index string) error {
return nil
}

out, err := exec.Command("git", "clone", "--filter=blob:none", "--mirror", gitURL, path).CombinedOutput()
// 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
if err != nil {
return fmt.Errorf("cannot git clone the repository: %s: %s", err.Error(), out)
}
Expand Down

0 comments on commit fda193f

Please sign in to comment.