chiark / gitweb /
Mangle debian/<version> tags the way git-buildpackage does (as of git-buildpackage...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Aug 2013 14:17:28 +0000 (15:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Aug 2013 14:17:28 +0000 (15:17 +0100)
debian/changelog
dgit

index c750194..e14257f 100644 (file)
@@ -1,3 +1,10 @@
+dgit (0.4~pre2) experimental; urgency=low
+
+  * Mangle debian/<version> tags the way git-buildpackage does
+    (as of git-buildpackage 0.5.5, 3c6bbd0f4992f8da).
+
+ --
+
 dgit (0.4~pre1) experimental; urgency=low
 
   * Use dgit.debian.net vhost on alioth.  Closes:#720172.
diff --git a/dgit b/dgit
index b3a4e9b..c20ed35 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -70,7 +70,11 @@ my $lbranch_re = '^refs/heads/'.$branchprefix.'/([^/.]+)$';
 sub lref () { return "refs/heads/".lbranch(); }
 sub lrref () { return "refs/remotes/$remotename/$csuite"; }
 sub rrref () { return "refs/$branchprefix/$csuite"; }
-sub debiantag ($) { return "debian/$_[0]"; }
+sub debiantag ($) { 
+    my ($v) = @_;
+    $v =~ y/~:/_%/;
+    return "debian/$v";
+}
 
 sub dscfn ($) { return "${package}_$_[0].dsc"; }