dl_git: checking out git tag (Bug #413)


Added by Sukneet Basuta about 2 years ago. Updated over 1 year ago.


Status:Feedback Start date:07/15/2012
Priority:Normal Due date:
Assignee:- % Done:

50%

Category:-
Target version:-

Description

In dl_git, when checking out a tag on initial clone,

git checkout -b $GIT_TAG origin/$GIT_TAG

is run, but that doesn't seem to checkout the tag. i.e.

git clone git://anongit.kde.org/strigi strigi
Cloning into 'strigi'...
git checkout -b v0.7.7 origin/v0.7.7
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/v0.7.7' which can not be resolved as commit?

Shouldn't a simple "git checkout $GIT_TAG" or "git checkout -b $GIT_TAG $GIT_TAG" be done instead? Or was this done for a specific reason?


History

Updated by Jaka Kranjc almost 2 years ago

Likely just the syntax changed in the meanwhile.

Updated by Ismael Luceno over 1 year ago

I don't remember of tags being available under refs/remotes/, so it probably meant branches...

Anyway, removing the prefix would allow both.

Updated by Jaka Kranjc over 1 year ago

Looks like Ismael's simplification patch fixes this one too.

  • % Done changed from 0 to 50
  • Status changed from New to Feedback

Also available in: Atom PDF