github-downloader icon indicating copy to clipboard operation
github-downloader copied to clipboard

can't download a specific branch

Open nukadelic opened this issue 2 years ago • 2 comments

$ ./github-downloader.sh https://github.com/Oculus-VR/Unity-Graphics/tree/2021.2/oculus-appsw-particles/com.unity.render-pipelines.core
Exporting https://github.com/Oculus-VR/Unity-Graphics/2021.2/oculus-appsw-particles/com.unity.render-pipelines.core
svn: E170000: URL 'https://github.com/Oculus-VR/Unity-Graphics/2021.2/oculus-appsw-particles/com.unity.render-pipelines.core' doesn't exist

nukadelic avatar Apr 15 '22 22:04 nukadelic

Unfortunately this is a limitation of the script, it can't handle branches that have / in them as it can't tell from the URL alone what is a branch and what is a directory. The script could be changed to support passing the branch name as a parameter instead of trying to detect it but that's not something I currently have the bandwidth to do. Thanks for the issue and sorry this script couldn't do what you needed it to!

Decad avatar May 03 '22 14:05 Decad

@Decad you can use the GitHub action based version of this GitHub-Downloader-Action: A Github Action to download files / folders from another repo to save your bandwidth & perform test's if still needed. Hope this helps!

MarketingPip avatar Jul 08 '22 10:07 MarketingPip