threads / discuss / 39897

git-subtree with log.date=relative

Subject: git-subtree with log.date=relative

## tl;dr

One message between Jul 20, 2015 and Jul 20, 2015.

replies: 0people: 1as markdown or json

Bryan Jacobs· Jul 20, 2015, 00:03 UTC · lore
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

← back to recent threads