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

Use of --source-path can include unwanted files in downloads. #37

Closed josh-padnick closed 5 years ago

josh-padnick commented 6 years ago

I attempted to download files from a repo that looked like this:

- ...
- modules
  - run-x
    - hello.txt
  - run-x-y
  - run-x-y-z

using this fetch command:

fetch --repo <repo> --branch <branch> --source-path "/modules/run-x/" /tmp/

At this point, /tmp should have only these files:

hello.txt

But instead, it has these files:

-x-y
-x-y-z
hello.txt
brikis98 commented 5 years ago

Fixed by #56 and released in https://github.com/gruntwork-io/fetch/releases/tag/v0.3.7.