[Xfce4-commits] <xfce-git-hooks:master> Properly extract short names of branches with a / in the name.
Jannis Pohlmann
noreply at xfce.org
Sat Oct 17 18:38:01 CEST 2009
Updating branch refs/heads/master
to 0d4f7a7942438b1b2519b7f4d0688d391628c1ff (commit)
from 81e1d778d8f8b76c64adb144f664cb4457a31de9 (commit)
commit 0d4f7a7942438b1b2519b7f4d0688d391628c1ff
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sat Oct 17 18:34:17 2009 +0200
Properly extract short names of branches with a / in the name.
hooks/update-03-send-commit-mails | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hooks/update-03-send-commit-mails b/hooks/update-03-send-commit-mails
index dffd447..7ecfce2 100755
--- a/hooks/update-03-send-commit-mails
+++ b/hooks/update-03-send-commit-mails
@@ -47,7 +47,7 @@ xfce_git_hook_tagger()
xfce_git_hook_short_refname()
{
- echo "$1" | sed -e 's;refs/.*/\(.*\);\1;g'
+ echo "$1" | sed -e 's;refs/\(heads\|remotes\|tags\)/\(.*\);\2;g'
}
xfce_git_hook_rev_type()
More information about the Xfce4-commits
mailing list