From: Stas Sergeev Date: Wed, 26 Jul 2017 00:21:17 GMT Subject: Re: git gc seems to break --symbolic-full-name Message-ID: <60331e4f-93a7-5ceb-1443-41212b9fb945@list.ru> In-Reply-To: 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. :)