[PATCH] fix and testcase for git-commit-tree option

Actually use GIT_COMMITTER_DATE in git-commit-tree.

(It used to mistakenly re-use the author date)

Add test-case for it.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Rene Scharfe
2005-05-27 01:03:26 +02:00
committed by Linus Torvalds
parent 2eab945e86
commit c504aae2a6
2 changed files with 46 additions and 1 deletions

View File

@ -153,7 +153,7 @@ int main(int argc, char **argv)
parse_date(audate, date, sizeof(date));
cmdate = gitenv("GIT_COMMITTER_DATE");
if (cmdate)
parse_date(audate, realdate, sizeof(realdate));
parse_date(cmdate, realdate, sizeof(realdate));
remove_special(gecos); remove_special(realgecos); remove_special(commitgecos);
remove_special(email); remove_special(realemail); remove_special(commitemail);