chiark / gitweb /
dgit-repos-server: fixes, tests. can now pass drs-clone-nogit, really
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 12 Feb 2014 18:25:31 +0000 (18:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:06 +0000 (18:29 +0000)
dgit-repos-server
tests/lib

index 57cb5be..ad4cde5 100755 (executable)
@@ -451,6 +451,14 @@ sub checksuite () {
     reject "unknown suite";
 }
 
+sub tagh1 ($) {
+    my ($tag) = @_;
+    my $vals = $tagh{$tag};
+    reject "missing tag $tag in signed tag object" unless $vals;
+    reject "multiple tags $tag in signed tag object" unless @$vals == 1;
+    return $vals->[0];
+}
+
 sub checks () {
     debug "checks";
     checksuite();
@@ -485,7 +493,6 @@ sub onwardpush () {
 
 sub stunthook () {
     debug "stunthook";
-    print Dumper(\$ENV{GIT_DIR});
     chdir $workrepo or die "chdir $workrepo: $!";
     mkdir "dgit-tmp" or $!==EEXIST or die $!;
     readupdates();
index 7c82081..0630f1d 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -238,5 +238,6 @@ t-drs-test () {
        export DGIT_TEST_TESTNAME="$testname"
        export ADTTMP=$tmp
        cp $root/tests/gnupg/{dd.gpg,dm.gpg,dm.txt} $tmp/.
+       cp $root/tests/suites $tmp/.
        exec "${0///drs-//}" "$@"
 }