chiark / gitweb /
Support dgit-distro.<distro>.keyid config option.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Aug 2013 14:18:27 +0000 (15:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Aug 2013 14:18:27 +0000 (15:18 +0100)
debian/changelog
dgit
dgit.1

index e14257feec4cd7b397f6e109265beacc16454a89..f0a3cb28c7ada589b601e88bd2a561cfaa5d0530 100644 (file)
@@ -2,6 +2,7 @@ dgit (0.4~pre2) experimental; urgency=low
 
   * Mangle debian/<version> tags the way git-buildpackage does
     (as of git-buildpackage 0.5.5, 3c6bbd0f4992f8da).
+  * Support dgit-distro.<distro>.keyid config option.
 
  --
 
diff --git a/dgit b/dgit
index c20ed35eeea6797086438f455d15eb743edca8c4..78a0e31dbd44a4efee44fb1661c475f261da256f 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -815,6 +815,9 @@ sub dopush () {
        print "[new .dsc left in $dscfn.tmp]\n";
     }
     if ($sign) {
+       if (!defined $keyid) {
+           $keyid = access_cfg('keyid','RETURN-UNDEF');
+       }
        my @tag_cmd = (@git, qw(tag -s -m),
                       "Release $dversion for $csuite [dgit]");
        push @tag_cmd, qw(-u),$keyid if defined $keyid;
diff --git a/dgit.1 b/dgit.1
index 28ec02ee9f6854a8e1a9c8c943a467dd8869c9e8..ee78e1b481fc77da035d60ae20490356b2912741 100644 (file)
--- a/dgit.1
+++ b/dgit.1
@@ -411,6 +411,8 @@ on the dgit command line.
 .TP
 .BI dgit-distro. distro .ssh
 .TP
+.BI dgit-distro. distro .keyid
+.TP
 .BR dgit.default. *
 for each
 .BR dgit-distro. \fIdistro\fR . *