DownGit icon indicating copy to clipboard operation
DownGit copied to clipboard

Downloading main/master branch of a repo with &rootDirectory=false still contains root directory

Open ShadowCreator250 opened this issue 3 years ago • 1 comments

Downloading the home directory (aka the master/main branch) of a repository with the &rootDirectory=false flag gives you a zip where the root directory (named <repo>-<main/master>) is still present. This is not the behavior I expected.

Example: https://minhaskamal.github.io/DownGit/#/home?url=https:%2F%2Fgithub.com%2FMinhasKamal%2FDownGit&rootDirectory=false returns a zip file with the DownGit-master root directory still present.

Is this a known limitation of this tool? Is this feature only available for sub-folders in the repository?

ShadowCreator250 avatar Mar 26 '21 17:03 ShadowCreator250

When the root repo link (or home directory) is entered into DownGit then it is processed differently. This is a solvable bug. Thanks so much for reporting it. We shall try to solve this in next update.

MinhasKamal avatar Mar 27 '21 04:03 MinhasKamal