From c2a5bae511c6d5354aa4e1cb59069c31df2b8eeb Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 21 May 2013 23:35:19 -0400 Subject: [PATCH] [PATCH] guilt: fix date parsing If the date field has a space in it, such as: Date: Tue, 14 May 2013 18:37:15 +0200 previously guilt would go belly up: + export GIT_AUTHOR_DATE=Tue, 14 May 2013 18:37:15 +0200 /usr/local/bin/guilt: 571: export: 14: bad variable name Fix this. Signed-off-by: "Theodore Ts'o" Signed-off-by: Josef 'Jeff' Sipek --- guilt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guilt b/guilt index 309437a..e9b2aab 100755 --- a/guilt +++ b/guilt @@ -568,7 +568,7 @@ commit() author_date_str=`sed -n -e '/^Date:/ { s/^Date: //; p; q; }; /^(diff |---$|--- )/ q' "$p"` fi if [ ! -z "$author_date_str" ]; then - export GIT_AUTHOR_DATE=`echo $author_date_str` + export GIT_AUTHOR_DATE="$author_date_str" fi fi