git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] guilt: fix date parsing

From
Theodore Ts'o <tytso@mit.edu>
Date
May 22, 2013, 03:13 UTC
Message-ID
<1369192411-8842-1-git-send-email-tytso@mit.edu>
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" <tytso@mit.edu>
---
 guilt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guilt b/guilt
index 9953bdf..6e8d542 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
 
-- 
1.7.12.rc0.22.gcdd159b
Next: Josef 'Jeff' Sipek
Message 1 of 4 in “guilt: fix date parsing”
  1. guilt: fix date parsingTheodore Ts'o, May 22, 2013
  2. Josef 'Jeff' SipekMay 22, 2013
  3. Theodore Ts'oMay 22, 2013
  4. Josef 'Jeff' SipekMay 22, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.