chiark / gitweb /
dgit-repos-server: better handling of wrongness in maybeinstallprospective
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jan 2014 19:13:28 +0000 (19:13 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:05 +0000 (18:29 +0000)
dgit-repos-server

index ce48eeb..8dd36ae 100755 (executable)
@@ -241,9 +241,11 @@ sub maybeinstallprospective () {
            die;
        die if $got{$wh}++;
     }
+    $!=0; $?=0; close SR or $?==256 or die "$? $!";
+
     debug "installprospective ?";
-    die if grep { !$_ } values %got;
-    $!=0; $?=0; close SR or die "$? $!";
+    die Dumper(\%got)." -- missing refs in new repo"
+       if grep { !$_ } values %got;
 
     debug "install $destrepo => $realdestrepo";
     rename $destrepo, $realdestrepo or die $!;