]> git.ipfire.org Git - thirdparty/git.git/commitdiff
cook: parse ctime(3) output correctly
authorJunio C Hamano <gitster@pobox.com>
Sun, 2 May 2010 14:54:09 +0000 (07:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 May 2010 14:54:09 +0000 (07:54 -0700)
cook

diff --git a/cook b/cook
index e76a6e95931037ebf20ca4ff68d1a7fa2f922a19..03581f441d1dfc9779e35b84c579a481db3715f9 100755 (executable)
--- a/cook
+++ b/cook
@@ -444,7 +444,7 @@ sub update_issue {
 
        my $now_string = localtime;
        my ($current_dow, $current_mon, $current_date, $current_year) =
-           ($now_string =~ /^(\w+) (\w+) (\d+) [\d:]+ (\d+)$/);
+           ($now_string =~ /^(\w+) (\w+) +(\d+) [\d:]+ (\d+)$/);
 
        my $btext = $cooking->{'topic_description'}{$blurb}{'text'};
        if ($btext !~ s/\A$blurb_match//) {