From 1a76956f92148dd6a6d1d2dc5b5354fec78007d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 15 Jan 2014 10:11:14 +0100 Subject: [PATCH] Don't leave left-overs after an abort in the last fd-commit command --- fd-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fd-commit b/fd-commit index d6179540..cc0d2d4d 100755 --- a/fd-commit +++ b/fd-commit @@ -82,7 +82,8 @@ while read line; do fi done < <(git status --porcelain) +git reset for cmd in "${commands[@]}"; do - git reset eval "$cmd" + git reset done