From: Marc Branchaud <marcnarc@xiplink.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: (bug?) Inconsistent workdir file timestamps after initial clone.
Date: Tue, 11 Dec 2012 15:52:47 -0500 [thread overview]
Message-ID: <50C79D1F.1080709@xiplink.com> (raw)
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 reply other threads:[~2012-12-11 20:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 20:52 Marc Branchaud [this message]
2012-12-11 21:27 ` (bug?) Inconsistent workdir file timestamps after initial clone 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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50C79D1F.1080709@xiplink.com \
--to=marcnarc@xiplink.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).