aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-09-12 00:04:07 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2009-09-13 16:40:49 +0100
commit24a7f944264b452d9528a457bbc898c77f7b17b1 (patch)
treedaee174cf2380ad3bea2103a98cb3773375fa765
parentc18842cc149803ab61f716c84c96bf7d61a5c0fc (diff)
downloadstgit-24a7f944264b452d9528a457bbc898c77f7b17b1.tar.gz
Preserve the given author date during import
The import has two stages - one for creating the initial empty commit with the patch description followed by a refresh once the diff was successfully applied. The second refresh resets the author date to the current one. This patch passes the given author date to the refresh_patch function. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--stgit/commands/imprt.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py
index 0bbacbc..aa75065 100644
--- a/stgit/commands/imprt.py
+++ b/stgit/commands/imprt.py
@@ -158,6 +158,7 @@ def __create_patch(filename, message, author_name, author_email,
strip = options.strip)
crt_series.refresh_patch(edit = options.edit,
show_patch = options.showdiff,
+ author_date = author_date,
sign_str = options.sign_str,
backup = False)
out.done()