Forced the links to be in lower-case for Redmine

This commit is contained in:
Pierre Pronchery 2014-09-17 18:16:20 +02:00
parent c2ed131032
commit c8d1d32ba2

View File

@ -25,6 +25,7 @@ REDMINE=
GIT="git" GIT="git"
SED="sed" SED="sed"
SORT="sort" SORT="sort"
TR="tr"
UNIQ="uniq" UNIQ="uniq"
@ -173,7 +174,14 @@ _link()
shortrev=$(_shorten 8 "$rev") shortrev=$(_shorten 8 "$rev")
[ -n "$GITWEB" ] && echo "$GITWEB?p=${repository}.git;a=commit;h=$shortrev" [ -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
} }