chiark / gitweb /
fixes, upload-host
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Aug 2013 15:30:57 +0000 (16:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Aug 2013 15:30:57 +0000 (16:30 +0100)
dgit
dgit.1

diff --git a/dgit b/dgit
index 0818e371e79885dee6f1828ce19ba77cdd06dfac..c66a001482120f40932a3b300d4f4704783c1a2d 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -143,7 +143,7 @@ our %defcfg = ('dgit.default.distro' => 'debian',
 
 sub cfg {
     foreach my $c (@_) {
-       my $v = cmdoutput_errok(qw(git config --), $c);
+       my $v = cmdoutput_errok(@git, qw(config --), $c);
        if ($?==0) {
            chomp $v;
            return $v;
@@ -542,7 +542,9 @@ sub dopush () {
        runcmd_ordryrun @debsign_cmd;
     }
     runcmd_ordryrun @git, qw(push),access_giturl(),"refs/tags/$tag";
-    runcmd_ordryrun @dput, $changesfile;
+    my $host = access_cfg('upload-host');
+    my @hostarg = defined($host) ? ($host,) : ();
+    runcmd_ordryrun @dput, @hostarg, $changesfile;
 }
 
 sub cmd_clone {
@@ -654,7 +656,7 @@ sub parseopts () {
                } elsif (s/^-D/-/) {
                    open DEBUG, ">&STDERR" or die $!;
                } elsif (s/^-c(.*=.*)//s) {
-                   push @git, $1;
+                   push @git, '-c', $1;
                } elsif (s/^-C(.*)//s) {
                    $changesfile = $1;
                } elsif (s/^-k(.*)//s) {
diff --git a/dgit.1 b/dgit.1
index 84e54695a90b3e8505de7fd68a1a57bdfa2c2e25..feb6d7a58a4e0662b19cf4aeb6ea09c6a15d9860 100644 (file)
--- a/dgit.1
+++ b/dgit.1
@@ -158,6 +158,8 @@ on the dgit command line.
 .TP
 .BI dgit-distro. distro .git-create
 .TP
+.BI dgit-distro. distro .upload-host
+.TP
 .BI dgit-distro. distro .ssh
 .TP
 .BR dgit.default. *