Bug #413

dl_git: checking out git tag

Added by Sukneet Basuta over 3 years ago. Updated over 2 years ago.

Status:FeedbackStart date:07/15/2012
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


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?


#1 Updated by Jaka Kranjc over 3 years ago

Likely just the syntax changed in the meanwhile.

#2 Updated by Ismael Luceno over 2 years ago

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

Anyway, removing the prefix would allow both.

#3 Updated by Jaka Kranjc over 2 years ago

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

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

Also available in: Atom PDF