How can I specify a tag or revision in a git recipe?

Asked by navycat

How can I specify a tag or revision in a git recipe?

I tried lp:~navycatt/celluloid/+git/master v0.21 and lp:~navycatt/celluloid/+git/master refs/tags/v0.21 but fatal: ambiguous argument 'v0.21': unknown revision or path not in the working tree.

On the local machine, git rev-parse --verify refs / tags / v0.21 and git rev-parse --verify v0.21 passes.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Cristian Gonzalez
Solved:
Last query:
Last reply:
Revision history for this message
Best Cristian Gonzalez (cristiangsp) said :
#1

The build process needs tags referenced to be on a branch. You can check that that's not the case for the tag 'v0.21' executing the following command in the repository.
> git branch -a --contains v0.21

Please fix that part and the build process should continue properly.

Revision history for this message
navycat (navycatt) said :
#2

Thanks.

Revision history for this message
navycat (navycatt) said :
#3

Thanks Cristian Gonzalez, that solved my question.