Skip to content

Build fails to git checkout a specific hash/tag successfully #3837

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

Closed
apcraig opened this issue Mar 23, 2018 · 6 comments
Closed

Build fails to git checkout a specific hash/tag successfully #3837

apcraig opened this issue Mar 23, 2018 · 6 comments
Labels
Support Support question

Comments

@apcraig
Copy link

apcraig commented Mar 23, 2018

Details

Expected Result

Documentation would checkout and build for a tag. This works fine with master and other branches, but not with tags.

Actual Result

I am trying to build documentation for a specific tag in github. When I trigger that build, the checkout fails as follows

git clone --recursive https://github.com/cice-consortium/cice .
git show-ref remotes/origin/e03a341ba4d8fe569f581411a4b607e014fb8454
git checkout --force origin/e03a341ba4d8fe569f581411a4b607e014fb8454
error: pathspec 'origin/e03a341ba4d8fe569f581411a4b607e014fb8454' did not match any file(s) known to git.

I can duplicate this result on the command line.

The following does work for a specific tag/hash.

git checkout --force e03a341ba4d8fe569f581411a4b607e014fb8454

or

git checkout --force cice6.0.0.alpha

which is the actual tag associated with the hash.

git checkout --force origin/branch

works fine for branches but origin/tag does not work for specific tags or hashes.

@RichardLitt RichardLitt added the Support Support question label Mar 23, 2018
@irmen
Copy link

irmen commented Mar 23, 2018

Encountering the same issue. seems like the git checkout process for "stable" documentation releases tries to do something wrong to get the tag it needs to checkout. This used to work. Here is my problem: http://readthedocs.org/projects/pyro4/builds/6938148/

(Not sure if related: it seems that the "stable" build doesn't pick up a new release tag, it remains stuck at the previous release tag)

@stsewd
Copy link
Member

stsewd commented Mar 30, 2018

@apcraig @irmen this was fixed on #3843, can you try building again and see if your builds pass now?

@apcraig
Copy link
Author

apcraig commented Mar 30, 2018

It works now for me. Thanks. I will close this issue.

@apcraig apcraig closed this as completed Mar 30, 2018
@irmen
Copy link

irmen commented Mar 30, 2018

@stsewd no luck, the stable build is still stuck at the previous version's commit in my project. I don't know what to do to solve this (apart from recreating my whole project, which is not something I'd like to do) Note that it builds fine, it's just stuck at an old release version

@stsewd
Copy link
Member

stsewd commented Apr 2, 2018

@irmen please see #3887 (comment) for more information

@irmen
Copy link

irmen commented Apr 2, 2018

@stsewd thanks for the pointer. I will have a look. It is not a big issue though unless it is still stuck when I publish the next release. We will see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

4 participants