Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-06-15 18:05:49 +0200
committerMichal Marek <mmarek@suse.cz>2011-06-16 13:07:57 +0200
commit1a740a7299793194775da5bad9ca712e48694b9b (patch)
treebe5e6bfa19bbef108b472c616be5321b7c2641a7
parent9fd62c4862fa8d061e4cc60165b738b69e7ad780 (diff)
scripts/series2git: fix invalid date errors
Fix date errors like the following: [...] skipping patches.kernel.org/patch-2.6.32.38-39 ...date: invalid date `Tue Sep 30 12:33:53 2008 +0200:' ...............................................date: invalid date `Mon Dec 7 16:38:33 2009 +0100' [...] Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
-rwxr-xr-xscripts/series2git2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/series2git b/scripts/series2git
index 3023e01e24..7e8d025d5c 100755
--- a/scripts/series2git
+++ b/scripts/series2git
@@ -191,6 +191,8 @@ apply_patch()
esac
local subject=$(ex_hdr Subject "$patch")
GIT_AUTHOR_DATE=$(ex_hdr Date "$patch")
+ GIT_AUTHOR_DATE=$(ex_hdr Date "$patch" \
+ | perl -p -e 's/(\d\d:\d\d:\d\d) (\d{4})/$2 $1/;s/:$//')
if test -n "$GIT_AUTHOR_DATE"; then
GIT_AUTHOR_DATE=$(date -R -d"$GIT_AUTHOR_DATE" 2>/dev/null)
fi