]> Sergey Matveev's repositories - public-inbox.git/commitdiff
githttpbackend: shallow clone workaround
authorEric Wong <e@80x24.org>
Fri, 24 Jun 2016 23:39:59 +0000 (23:39 +0000)
committerEric Wong <e@80x24.org>
Fri, 24 Jun 2016 23:40:40 +0000 (23:40 +0000)
Apparently git-http-backend exits with a non-zero
status on shallow clones (due to git-upload-pack),
so there is a to-be-fixed bug in git.git

http://mid.gmane.org/20160621112303.GA21973@dcvr.yhbt.net
http://mid.gmane.org/20160621121041.GA29156@sigill.intra.peff.net

lib/PublicInbox/GitHTTPBackend.pm

index 9660d21e77c03064407d2ada52e9bb6e34a7ef88..7267a1d76978a2219130926002e2ddb9fcd679cc 100644 (file)
@@ -188,7 +188,6 @@ sub serve_smart {
        my $end = sub {
                if (my $err = $x->finish) {
                        err($env, "git http-backend ($git_dir): $err");
-                       drop_client($env);
                }
                $fh->close if $fh; # async-only
        };