Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ES/BaseRepo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sub update_from_remote {
unless ( $self->_try_to_fetch ) {
my $url = $self->url;
printf(" - %20s: Cloning from <%s>\n", $name, $url);
run 'git', 'clone', '--bare', $self->_reference_args, $url, $git_dir;
run 'git', 'clone', '--bare', '--no-tags', '--depth=1', $self->_reference_args, $url, $git_dir;
}
1;
}
Expand Down
1 change: 1 addition & 0 deletions lib/ES/Repo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ sub _extract_from_ref {
$dest->mkpath;
my $tar = $dest->file( '.temp_git_archive.tar' );
die "File <$tar> already exists" if -e $tar;
run qw(git fetch --no-tags --depth=1 origin), $ref . ':' . $ref;
run qw(git archive --format=tar -o), $tar, $ref, $path;

run qw(tar -x -C), $dest, '-f', $tar;
Expand Down
2 changes: 1 addition & 1 deletion lib/ES/TargetRepo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sub checkout_minimal {

my $original_pwd = Cwd::cwd();
eval {
my $out = run qw(git clone --no-checkout),
my $out = run qw(git clone --no-checkout --no-tags --depth=1),
$self->git_dir, $self->{destination};

# This if statement handles empty repositories in a way that works with
Expand Down