aboutsummaryrefslogtreecommitdiff
path: root/commit-tree.c
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2005-05-27 01:03:26 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 16:21:13 -0700
commitc504aae2a6c96f1363562a3aa1dc05fb4462e978 (patch)
tree2e993f0b7920f564fc1822fb9028707707816854 /commit-tree.c
parent2eab945e865317cb7d390aec214303f1d931b53a (diff)
downloadgit-c504aae2a6c96f1363562a3aa1dc05fb4462e978.tar.gz
git-c504aae2a6c96f1363562a3aa1dc05fb4462e978.tar.xz
[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>
Diffstat (limited to 'commit-tree.c')
-rw-r--r--commit-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-tree.c b/commit-tree.c
index e9069971a..1d125b841 100644
--- a/commit-tree.c
+++ b/commit-tree.c
@@ -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);