Re: Retrieve version-string on shallow clone

2019-09-03 Thread Reino Wijnsma
Hello Giuseppe, Philip and Jeff, On 2019-09-02T16:08:54+0200, Giuseppe Crinò wrote: > To my understanding both questions are solved by > * https://stackoverflow.com/a/47720414/2219670 > * https://stackoverflow.com/a/12704727/2219670 On 2019-09-02T17:52:19+0200, Philip Oakley wrote: > Start by ge

Re: Retrieve version-string on shallow clone

2019-09-02 Thread Jeff King
On Sun, Sep 01, 2019 at 01:07:44PM +0200, Reino Wijnsma wrote: > git clone https://github.com/mstorsjo/fdk-aac.git > [...] > > git describe --tags > v2.0.0-185-gcc5c85d > > git clone --depth 1 https://github.com/mstorsjo/fdk-aac.git > > git describe --tags > fatal: No names found, cannot descri

Re: Retrieve version-string on shallow clone

2019-09-02 Thread Philip Oakley
Hi Reino On 01/09/2019 12:07, Reino Wijnsma wrote: Hello git@vger.kernel.org, Two days ago I started https://github.com/mstorsjo/fdk-aac/issues/107, asking how to retrieve the fdk-aac version-string on a shallow clone. My question was of course not fdk-aac related, so Martin Storsjö suggested

Re: Retrieve version-string on shallow clone

2019-09-02 Thread Giuseppe Crinò
> I'd figure one of these options would be to clone everything from tag > v2.0.0 onward, but if so how would I do that? > As another option I was thinking; maybe it's possible to do git describe > --tags on the remote repo? To my understanding both questions are solved by * https://stackoverflow