From c8d1d32ba25efd561a5e56c8cddd187e546197e6 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 17 Sep 2014 18:16:20 +0200 Subject: [PATCH] Forced the links to be in lower-case for Redmine --- src/deforaos-git-hook.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/deforaos-git-hook.sh b/src/deforaos-git-hook.sh index 5bd2020..39a9328 100755 --- a/src/deforaos-git-hook.sh +++ b/src/deforaos-git-hook.sh @@ -25,6 +25,7 @@ REDMINE= GIT="git" SED="sed" SORT="sort" +TR="tr" UNIQ="uniq" @@ -173,7 +174,14 @@ _link() shortrev=$(_shorten 8 "$rev") [ -n "$GITWEB" ] && echo "$GITWEB?p=${repository}.git;a=commit;h=$shortrev" - [ -n "$REDMINE" ] && echo "$REDMINE/projects/${repository%.git}/repository/revisions/$shortrev" + [ -n "$REDMINE" ] && echo "$REDMINE/projects/${repository}/repository/revisions/$shortrev" | _tolower +} + + +#_tolower +_tolower() +{ + $TR A-Z a-z }