summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-09-11 19:07:22 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-09-11 19:07:22 +0200
commit9f30667b1e0b398e0fb97eaf6917e1e1ad5c8261 (patch)
treeb143530b4bb989e24077cdcc0588b90b7ded8ac1
parent79d79a6937647fb19a340fc8f8585c9080a60a1b (diff)
downloadbin-9f30667b1e0b398e0fb97eaf6917e1e1ad5c8261.zip
bin-9f30667b1e0b398e0fb97eaf6917e1e1ad5c8261.tar.gz
unwip : fix
-rwxr-xr-xunwip7
1 files changed, 6 insertions, 1 deletions
diff --git a/unwip b/unwip
index 5220208..29ccf83 100755
--- a/unwip
+++ b/unwip
@@ -11,7 +11,12 @@ then
do
git reset --hard HEAD~1
done
- git pull && git reset --soft HEAD~1 && git reset && git status
+ git pull || exit 1
+ while [ "$(git log --format="%s" HEAD~1..)" == "WIP" ]
+ do
+ git reset --soft HEAD~1
+ done
+ git reset && git status
else
echo "unknown cmd '$cmd'" && exit 1
fi