Merge branch 'da/subtree-date-confusion'

"git subtree" (in contrib/) depended on "git log" output to be
stable, which was a no-no.  Apply a workaround to force a
particular date format.

* da/subtree-date-confusion:
  contrib/subtree: ignore log.date configuration
This commit is contained in:
Junio C Hamano 2015-08-03 11:01:31 -07:00
Родитель 0baebca51e e7aac44ed2
Коммит 7a06e63f82
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -305,7 +305,7 @@ copy_commit()
# We're going to set some environment vars here, so
# do it in a subshell to get rid of them safely later
debug copy_commit "{$1}" "{$2}" "{$3}"
git log -1 --pretty=format:'%an%n%ae%n%ad%n%cn%n%ce%n%cd%n%B' "$1" |
git log -1 --pretty=format:'%an%n%ae%n%aD%n%cn%n%ce%n%cD%n%B' "$1" |
(
read GIT_AUTHOR_NAME
read GIT_AUTHOR_EMAIL

Просмотреть файл

@ -94,6 +94,10 @@ test_expect_success 'add sub3' '
# Back to mainline
cd ..
test_expect_success 'enable log.date=relative to catch errors' '
git config log.date relative
'
test_expect_success 'add main4' '
create main4 &&
git commit -m "main4" &&