Fix send_git
This commit is contained in:
parent
4ba4f34993
commit
61d523c7c3
2 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ if ($ref =~ m<^refs/tags/(.+)$>)
|
|||
"id" => $id_project,
|
||||
"rendu" => $tag,
|
||||
"login" => $repo_login,
|
||||
"path" => $ENV{GL_REPO_BASE_ABS}."/".$ENV{GL_REPO}.".git",
|
||||
# "path" => "ssh://git@localhost/".$ENV{GL_REPO},
|
||||
});
|
||||
};
|
||||
if ($@) {
|
||||
|
|
|
@ -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