Wrong commit URL when commit dates are off
Created by: fingermark
A server had its time an hour behind and committed a change. On the project page (/myproject), it lists the commits as follows:
Commit 2 [link to commits/0824361a7b43656d7fcb8421bfdd6a380f4baa2e]
Commit 3 [link to commits/0824361a7b43656d7fcb8421bfdd6a380f4baa2e]
Commit 1 [link to commits/eccbe0facd51f3c62d22ecbc1edf2e8f250b4b36]
As you can see commit 2 and commit 3 link to the same place, which is incorrect.
Update: to be clear, the commits page has the correct URL. It's the project's activities page that has the incorrect URL. But, if I click on the commit page URL: /scripts/commits/ead50d446d92812e664cb52437ead29bfe42f78e it pulls up the diff and commit info for 0824361a7b43656d7fcb8421bfdd6a380f4baa2e, so both are incorrect and are probably related.
Here's what git shows:
git log
commit ead50d446d92812e664cb52437ead29bfe42f78e Author: Wrong Time Guy [email protected] Date: Thu Dec 1 13:54:28 2011 -0500
Commit 3 (On Server With Wrong Time)
commit 0824361a7b43656d7fcb8421bfdd6a380f4baa2e Author: Bradford [email protected] Date: Thu Dec 1 14:37:58 2011 -0500
Commit 2
commit eccbe0facd51f3c62d22ecbc1edf2e8f250b4b36 Author: Bradford [email protected] Date: Wed Nov 30 16:29:57 2011 -0500
Commit 1