From 6a3dee5729dd232387ffc3d40d29bab9022d71aa Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 17 May 2011 10:25:12 +0300 Subject: format_patch_dep3: also support origsvn --- format_patch_dep3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/format_patch_dep3 b/format_patch_dep3 index bd3e7ff..3dd40f2 100755 --- a/format_patch_dep3 +++ b/format_patch_dep3 @@ -52,9 +52,10 @@ fi # FIXME: ^' *' makes it work with 'git show', but increases the chance of # it changing the actual patch. get_patch \ -| sed \ - -e 's|^ *git-svn-id: http://svn.asterisk.org/[^@]*@\([0-9]\+\) .*|Origin: http://svnview.digium.com/svn/asterisk?view=rev\&rev=\1|' \ - -e 's|^ *(issue #\([0-9]\+\))$|Bug: https://issues.asterisk.org/view.php?id=\1|i' \ +| sed -r \ + -e 's#^ *git-svn-id: (http://svn.asterisk.org|https://origsvn.digium.com)/[^@]*@([0-9]+) .*#Origin: http://svnview.digium.com/svn/asterisk?view=rev\&rev=\2#' \ + -e 's@^ *\((|closes )issue #([0-9]+)\)$@Bug: https://issues.asterisk.org/view.php?id=\2@i' \ #git-svn-id: git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.4@233609 #(issue #16299) +#(closes issue #16299) -- cgit v1.2.3