Skip to content

Commit 2aa7cd6

Browse files
committed
git-retimestamp: git rebase --abort if we exit due to errors (like lack of working GDATE)
Signed-off-by: Jim Klimov <[email protected]>
1 parent c021d43 commit 2aa7cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-retimestamp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ while [ "$PREV" -le "$BACK" ] ; do
4747
DOLD="`git show -s --format='%ci'`"
4848
DNEW="`$GDATE -d "$DOLD $OFFSET"`" && [ -n "$DNEW" ] \
4949
|| { DNEW="`$GDATE -f '%Y-%m-%d %H:%M:%S %z' $OFFSET -j "$DOLD"`" && [ -n "$DNEW" ] ; } \
50-
|| { echo "FATAL: No compatible 'date' program was found for the OFFSET value (and other args) used" >&2 ; exit 1 ; }
50+
|| { echo "FATAL: No compatible 'date' program was found for the OFFSET value (and other args) used" >&2 ; git rebase --abort; exit 1 ; }
5151

5252
echo "=== AMENDING:"
5353
echo "=== OLD DATE: $DOLD"

0 commit comments

Comments
 (0)