dl_git: checking out git tag (Bug #413)
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 9 months ago
Likely just the syntax changed in the meanwhile.
Updated by Ismael Luceno 2 months 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 about 1 month ago
Looks like Ismael's simplification patch fixes this one too.
- % Done changed from 0 to 50
- Status changed from New to Feedback