threads / discuss / 42742

git gui produces series of commits with exactly the same time

Subject: git gui produces series of commits with exactly the same time

## tl;dr

4 messages between Jun 29, 2016 and Jun 30, 2016.

replies: 3people: 2as markdown or json

Andrei Faber· Jun 29, 2016, 08:12 UTC · lore
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.)
-- 
Best wishes,
Andrei Faber
Johannes Schindelin· Jun 29, 2016, 11:45 UTC · re: Andrei Faber · lore

Re: git gui produces series of commits with exactly the same time

Hi Andrei,
On Wed, 29 Jun 2016, Andrei Faber wrote:
> 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

Andrei Faber· Jun 29, 2016, 11:51 UTC · re: Johannes Schindelin · lore

Re: git gui produces series of commits with exactly the same time

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

On 29/06/2016 18:45, Johannes Schindelin wrote:
Show 14 quoted lines
> Hi Andrei,
>
> On Wed, 29 Jun 2016, Andrei Faber wrote:
>
>> 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
>
Andrei Faber· Jun 30, 2016, 05:59 UTC · re: Johannes Schindelin · lore

Re: git gui produces series of commits with exactly the same time

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

On 29/06/2016 18:45, Johannes Schindelin wrote:
Show 14 quoted lines
> Hi Andrei,
>
> On Wed, 29 Jun 2016, Andrei Faber wrote:
>
>> 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
>

← back to recent threads