aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2016-02-16 00:27:09 -0500
committerSasha Levin <sasha.levin@oracle.com>2016-02-16 00:27:09 -0500
commit0a5fc97fb8b2590745f39960266ac0bbeac5c1f0 (patch)
tree4c09c3cc126436ba0919a1b668006891e5f5393e
parentdf307b6dbde93f51f7eaba0cf63e2865f66a4ab1 (diff)
downloadstable-tools-0a5fc97fb8b2590745f39960266ac0bbeac5c1f0.tar.gz
stable-yank: brainfart
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-rwxr-xr-xstable-yank2
1 files changed, 1 insertions, 1 deletions
diff --git a/stable-yank b/stable-yank
index 2e4adef..7918a9d 100755
--- a/stable-yank
+++ b/stable-yank
@@ -20,7 +20,7 @@ after=$(echo $location | awk {'print $1'})
before=$(echo $location | awk {'print $3'})
# Topmost commit?
-if [ "$before" = "" ]
+if [ "$before" = "" ]; then
git reset --hard HEAD^
exit
fi