cut feature branch name so it don't get too long
authorvarac <varacanero@zeromail.org>
Sun, 15 Sep 2013 19:34:25 +0000 (21:34 +0200)
committervarac <varacanero@zeromail.org>
Sun, 15 Sep 2013 19:34:25 +0000 (21:34 +0200)
git/leap-fix.sh

index 4232f2a..4050148 100755 (executable)
@@ -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