Skip to contentSkip to conversation

fix and testcase for git-commit-tree option

PATCH New Rene Scharfe 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix and testcase for git-commit-tree option

Actually use GIT_COMMITTER_DATE in git-commit-tree.

---
commit 00a2437bb75c5c3521f199faa044481783de45aa tree 97976f550804169368e1e30cd26ead9980461a84 parent 2eab945e865317cb7d390aec214303f1d931b53a author lsr <lsr@linux> Fri, 27 May 2005 00:53:30 +0200 committer lsr <lsr@linux> Fri, 27 May 2005 00:53:30 +0200

 commit-tree.c                  |    2 -
 t/t1100-commit-tree-options.sh |   45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 1 deletion(-)
commit-tree.c (mode:100644) +1 -1
Index: commit-tree.c
===================================================================
@@ -153,7 +153,7 @@
 		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);
t/t1100-commit-tree-options.sh (mode:100755) renamed from dev/null (tree:dbec0de73e52d5b6d0740dd2e226d3ce8e2e51fd) +45 -0

45 lines not on this page · raw message