git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (bug?) Inconsistent workdir file timestamps after initial clone.
@ 2012-12-11 20:52 Marc Branchaud
  2012-12-11 21:27 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Marc Branchaud @ 2012-12-11 20:52 UTC (permalink / raw)
  To: Git Mailing List

Hi all,

Occasionally when doing a fresh clone of a repo, if the clock ticks at just
the wrong time the checked-out files end up with different timestamps.

The effect of this can be that, when "make" is run in the workdir it'll
decide that some files are out of date and try to rebuild them.

(In our particular case, our automated build-bot cloned a submodule of some
third-party (i.e. not our) code, where a Makefile.in got an earlier timestamp
than its dependent Makefile.am, so "configure && make" then tried to rebuild
Makefile.in and the build failed because our build environment has the wrong
version of automake.)

I'm completely unfamiliar with the clone-and-checkout parts of git's code, so
my first question really is if someone more familiar with the code could look
at it (or at least point me to it) to verify whether or not such inconsistent
timestamps are possible.

If someone can please confirm that timestamps will always be consistent on
the initial checkout of a clone, then I'll have to hunt for a different cause
of our build failure.

However, if inconsistent timestamps are possible, I'd like to suggest that
this should be fixed.  (I'd learn the code and write a patch myself, but as
some of you may know I haven't had very much time for git hacking lately.)

Thanks!

		M.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-12 17:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 20:52 (bug?) Inconsistent workdir file timestamps after initial clone Marc Branchaud
2012-12-11 21:27 ` Junio C Hamano
2012-12-11 22:07   ` Marc Branchaud
2012-12-11 22:30     ` Junio C Hamano
2012-12-12 15:48       ` Marc Branchaud
2012-12-12 17:18       ` Torsten Bögershausen
2012-12-12 17:26         ` Pyeron, Jason J CTR (US)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).