git/list[1] front-page[2] threads[3] people[4] search[5] about
 

(bug?) Inconsistent workdir file timestamps after initial clone.

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Dec 11, 2012, 20:52 UTC
Message-ID
<50C79D1F.1080709@xiplink.com>
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.
Next: Junio C Hamano
Message 1 of 7 in “(bug?) Inconsistent workdir file timestamps after initial clone.”
  1. Marc BranchaudDec 11, 2012
  2. Junio C HamanoDec 11, 2012
  3. Marc BranchaudDec 11, 2012
  4. Junio C HamanoDec 11, 2012
  5. Marc BranchaudDec 12, 2012
  6. Torsten BögershausenDec 12, 2012
  7. Pyeron, Jason J CTR (US)Dec 12, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.