summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-08-18 15:59:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-08-18 15:59:53 +0200
commit0de3da9b4607ecb71d27b7dc5e4199934db9c5b9 (patch)
tree75a2f990f51de9cb18ff6fa0edc708522baa88fd
parent76f5615e74643260747d981f44c98a0076da5adc (diff)
downloadbin-0de3da9b4607ecb71d27b7dc5e4199934db9c5b9.zip
bin-0de3da9b4607ecb71d27b7dc5e4199934db9c5b9.tar.gz
unwip : fix untested thing
-rwxr-xr-xunwip6
1 files changed, 3 insertions, 3 deletions
diff --git a/unwip b/unwip
index 18d8802..1269a16 100755
--- a/unwip
+++ b/unwip
@@ -2,10 +2,11 @@
cmd=${0##*/}
-if "$cmd" == "wip"
+if [ "$cmd" == "wip" ]
+then
git add . && git commit -m WIP && git push --force
+elif [ "$cmd" == "unwip" ]
then
-elif "$cmd" == "unwip"
while [ $(git log --format="%s" HEAD~1..) == "WIP" ]
do
git reset --hard HEAD~1
@@ -14,4 +15,3 @@ elif "$cmd" == "unwip"
else
echo "unknown cmd '$cmd'" && exit 1
fi
-