Archived
1
0
Fork 0

Fix send_git

This commit is contained in:
Mercier Pierre-Olivier 2013-11-03 01:18:58 +01:00
parent 4ba4f34993
commit 61d523c7c3
2 changed files with 3 additions and 3 deletions

View file

@ -22,12 +22,12 @@ sub process
my $path = $args->{param}{path} // "ssh://git@localhost/$year/$project_id/$login.git";
croak "$path is not a valid path." if (! -d $path);
my $tempdir = tempdir();
qx/git clone -b '$rendu' '$path' '$tempdir'/;
croak "$path is not a valid repository." if (! $?);
my $tar;
open my $fh, "tar -czf - -C '$tempdir' . |";
$tar .= $_ while(<$fh>);