gruntwork-io / fetch

Download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repos.
https://www.gruntwork.io/
MIT License
595 stars 87 forks source link

If a repo has no tags, fetch exits with an error #21

Closed brikis98 closed 7 years ago

brikis98 commented 7 years ago

When using fetch with --branch or --commit, you should be able to use a repo that has no tags. But if you do that, you get this error:

Received an HTTP 404 Response when attempting to query the repo for its tags.
austinfrey commented 7 years ago

@brikis98 I built this last night and was successful in pulling a a few repo's that did not have tags. I'd like to see if I can replicate, so what command were you using? I used fetch --branch master --repo https://github.com/aafrey/repo-name /tmp/repo-name and had no issue :man_shrugging:

brikis98 commented 7 years ago

@aafrey Perhaps this is a bug with the way the gruntwork-installer uses fetch? @antonbabenko, I believe you were the one to hit this issue, could you provide a bit more detail?

antonbabenko commented 7 years ago

Can't reproduce any longer. Must have been issue on my end, because now it works just fine.

brikis98 commented 7 years ago

Haha, alright then, I'll mark this bug as fixed!