author | Kjetil Barvik <barvik@broadpark.no> | |
Sun, 15 Mar 2009 11:38:55 +0000 (12:38 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 Mar 2009 19:56:40 +0000 (12:56 -0700) | ||
commit | 5bcf109cdf7f7b676600883be8dc7dbf26ddb055 | |
tree | 4478f5104d7a28462cfccb6c29edbfd63b7a56e2 | tree | snapshot |
parent | d7371a2d4d308d961d22c12ae9bc3d28cf35f029 | commit | diff |
checkout bugfix: use stat.mtime instead of stat.ctime in two places
Commit e1afca4fd "write_index(): update index_state->timestamp after
flushing to disk" on 2009-02-23 used stat.ctime to record the
timestamp of the index-file. This is wrong, so fix this and use the
correct stat.mtime timestamp instead.
Commit 110c46a909 "Not all systems use st_[cm]tim field for ns
resolution file timestamp" on 2009-03-08, has a similar bug for the
builtin-fetch-pack.c file.
Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commit e1afca4fd "write_index(): update index_state->timestamp after
flushing to disk" on 2009-02-23 used stat.ctime to record the
timestamp of the index-file. This is wrong, so fix this and use the
correct stat.mtime timestamp instead.
Commit 110c46a909 "Not all systems use st_[cm]tim field for ns
resolution file timestamp" on 2009-03-08, has a similar bug for the
builtin-fetch-pack.c file.
Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch-pack.c | diff | blob | history | |
read-cache.c | diff | blob | history |