Re: git gc seems to break --symbolic-full-name
- From
- Stas Sergeev <stsp@list.ru>
- Date
- Jul 26, 2017, 00:21 UTC
- Message-ID
- <60331e4f-93a7-5ceb-1443-41212b9fb945@list.ru>
- In-Reply-To
- <CA+P7+xrpKTuBTueyGGVz4doWMnbGQo+2qj2wbpPvXBaW-iDV2w@mail.gmail.com>
24.07.2017 07:02, Jacob Keller пишет:
> generally, I'd suggest using "git describe" to output a version based > on tag, and as part of your build system set that in some sort of > --version output of some kind.
I came to the following solution which looks quite simple (avoids comparing the output of git describe): git log -1 --format=%cd --date=rfc | xargs -I {} touch --date={} $TSTAMP
The care must be taken to put the timestamp file as a pre-requisite of the .LOW_RESOLUTION_TIME target, and the build seems to work properly. This still smells hackish, but this time I blame make for an inability to specify the timestamps explicitly. :)