summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-09-26 14:10:25 +0200
committervarac <varacanero@zeromail.org>2013-09-26 14:10:25 +0200
commitd122e70477a159abc5fa51a0884be89d99e48699 (patch)
tree03c7948738ad943b581b1651b8825c9c8e4affbe
parent5334d2e283564670e783cb49dd2576a6b6af71d4 (diff)
possible to edit branch name
-rwxr-xr-xgit/leap-fix.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/git/leap-fix.sh b/git/leap-fix.sh
index 4050148..0878fae 100755
--- a/git/leap-fix.sh
+++ b/git/leap-fix.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# example:
# ./leap-fix.sh 3667
@@ -10,14 +10,12 @@ 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' | cut -c -30`
+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
-feature="${issue}_$subject"
-echo "Starting feature branch \"$feature\""
-echo
-echo "Proceed ? press enter"
-read enter
+feature_default="${issue}_$subject"
+#echo "Starting feature branch \"$feature\""
+read -e -p "Enter feature branch name:" -i "$feature_default" feature
git flow feature start $feature