-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"git status branch" reports detached HEAD #2418
Comments
Makes sense. After all, if one needs the first commit in the branch |
|
Understood. Although I can understand the mentioned issue, you need the checkout for when several commits are done faster than the builds run, assuming a build is done for every commit. |
How about doing |
LGTM |
Hi,
we used to use "git lfs clone" in a custom clone script but started getting "git lfs clone is deprecated" warnings.
So we ditched our custom script in favor of the appveyor default, however we now have problems getting the branch number in our build scripts. The branch number is part of our detailed version and is read using "git status branch" (so that it works everywhere, not just on the CI).
However it seems that even though appveyor does use the branch name in the clone, it does not use it in the checkout:
I don't know why the
git checkout
command is there but that's responsible for dropping us on a detached HEAD. If the clone script already has a--branch
specified, what is the purpose ofgit checkout
?Thanks
The text was updated successfully, but these errors were encountered: