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
589 stars 90 forks source link

Support git refs #73

Closed yorinasub17 closed 3 years ago

yorinasub17 commented 3 years ago

Right now fetch supports --commit, --branch, and --tag, but it requires you to know which type you are passing in. This can be limiting especially in CI where the logic to know if the build is on a tag, branch, or commit sha can be quite complex depending on the platform.

Propose a unified --ref flag that can be used to pass in any valid git ref and fetch does the right thing.