From 0de3da9b4607ecb71d27b7dc5e4199934db9c5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 18 Aug 2020 15:59:53 +0200 Subject: unwip : fix untested thing --- unwip | 6 +++--- 1 file 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 - -- cgit v1.1-2-g2b99