Skip to contentSkip to conversation

git gui produces series of commits with exactly the same time

DISCUSSION Andrei Faber 2 participants 4 messages Jun 29, 2016 – Jun 30, 2016

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I've noticed that git history contains series of commits with exactly the same time, despite the real commit time of these commits was different. All these commit were made using the git gui tool. I'm the only developer in this project.

Has anyone experienced the same problem?

(I'm currently using Git 2.9.0 x64 under Windows.)

Signature · 2 lines
Best wishes,
Andrei Faber
#1 lore raw

Hi Andrei,

Quoted 4 lines · Andrei Faber

I've noticed that git history contains series of commits with exactly the same time, despite the real commit time of these commits was different. All these commit were made using the git gui tool. I'm the only developer in this project.

Is it possible that you played games with your GIT_AUTHOR_DATE environment variable?

Ciao,
Johannes

#2 lore raw

Hi Johannes,

No.

Another thing I've found is that these commits have different timestamp in the "Author" and "Committer" lines. The "Committer" lines have correct timestamps, and the "Author" timestamp is wrong.

Best wishes,
Andrei Faber

Quoted 14 lines · Johannes Schindelin

Hi Andrei,

Quoted 4 lines · Andrei Faber

I've noticed that git history contains series of commits with exactly the same time, despite the real commit time of these commits was different. All these commit were made using the git gui tool. I'm the only developer in this project.

Is it possible that you played games with your GIT_AUTHOR_DATE environment variable?

Ciao,
Johannes

#3 lore raw
In reply to Johannes Schindelin

Hi everyone,

I've found one case when this bug happens.

1. Create a commit

2. Amend it

3. Create several new commits

All the new commits have the same "Author" timestamp until the git gui is restarted.

Can anyone reproduce this?

Best wishes,
Andrei Faber

Quoted 14 lines · Johannes Schindelin

Hi Andrei,

Quoted 4 lines · Andrei Faber

I've noticed that git history contains series of commits with exactly the same time, despite the real commit time of these commits was different. All these commit were made using the git gui tool. I'm the only developer in this project.

Is it possible that you played games with your GIT_AUTHOR_DATE environment variable?

Ciao,
Johannes