projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48f6d1
)
cut feature branch name so it don't get too long
author
varac
<varacanero@zeromail.org>
Sun, 15 Sep 2013 19:34:25 +0000
(21:34 +0200)
committer
varac
<varacanero@zeromail.org>
Sun, 15 Sep 2013 19:34:25 +0000
(21:34 +0200)
git/leap-fix.sh
patch
|
blob
|
history
diff --git
a/git/leap-fix.sh
b/git/leap-fix.sh
index
4232f2a
..
4050148
100755
(executable)
--- 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