From 68e59214265ac5edbd785b708a5c473629444f21 Mon Sep 17 00:00:00 2001 From: varac Date: Sun, 15 Sep 2013 21:34:25 +0200 Subject: cut feature branch name so it don't get too long --- git/leap-fix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/leap-fix.sh b/git/leap-fix.sh index 4232f2a..4050148 100755 --- a/git/leap-fix.sh +++ b/git/leap-fix.sh @@ -10,7 +10,7 @@ issue=$1 [ $issue -gt 0 ] || exit 1 # quick'n dirty -subject=`wget -q https://leap.se/code/issues/${issue}.json -O -|json_pp| grep '"subject"'|cut -d '"' -f 4|sed 's/ /_/g' ` +subject=`wget -q https://leap.se/code/issues/${issue}.json -O -| json_pp | grep '"subject"' | cut -d '"' -f 4 | sed 's/[][!@#\$%^&*() :]/_/g' | cut -c -30` [ $subject ] || exit 1 -- cgit v1.2.3