From: Ian Jackson Date: Thu, 22 Aug 2013 14:17:28 +0000 (+0100) Subject: Mangle debian/ tags the way git-buildpackage does (as of git-buildpackage... X-Git-Tag: debian/0.4_pre2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=99c4248904bd8d22b9745777e247d4cf9ffcf536;p=dgit.git Mangle debian/ tags the way git-buildpackage does (as of git-buildpackage 0.5.5, 3c6bbd0f4992f8da). --- diff --git a/debian/changelog b/debian/changelog index c750194a..e14257fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +dgit (0.4~pre2) experimental; urgency=low + + * Mangle debian/ 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 b3a4e9b7..c20ed35e 100755 --- 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"; }