diff options
author | varac <varacanero@zeromail.org> | 2013-09-15 21:34:25 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-09-15 21:34:25 +0200 |
commit | 68e59214265ac5edbd785b708a5c473629444f21 (patch) | |
tree | d44e54956a0d2d831363f10327fd55e9c42c220e /git | |
parent | e48f6d1b9cd2f22ccd8f8f957879e74dc35e6321 (diff) |
cut feature branch name so it don't get too long
Diffstat (limited to 'git')
-rwxr-xr-x | git/leap-fix.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |