Fix send_git
This commit is contained in:
parent
4ba4f34993
commit
61d523c7c3
2 changed files with 3 additions and 3 deletions
|
@ -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>);
|
||||
|
|
Reference in a new issue