Skip to contentSkip to conversation

git-subtree with log.date=relative

DISCUSSION Bryan Jacobs 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Dear git Developers,

When setting log.date=relative in ~/.gitconfig, all "git subtree push" commands fail with errors like this:

git push using: ../../repos/second master
fatal: invalid date format: 8 minutes ago
Can't copy commit 10827bbf18aa17108e07039d9c125000889a4365

I believe git subtree is making a call to git log and relying on the dates in the output being machine-readable instead of human-readable. It should pass --date=default if it wants to ensure the default date format is used.

Bryan Jacobs