fetchFromBitbucket: url escape rev attr
To make sure revision with spaces in them (most likely from repos that
were used with mercurial) as well as revisions with names containing url
encoded characters ("branch%20with%20encoded%spaces").
This commit is contained in:
@@ -11,8 +11,7 @@ lib.makeOverridable (
|
||||
fetchzip (
|
||||
{
|
||||
inherit name;
|
||||
url = "https://bitbucket.org/${owner}/${repo}/get/${rev}.tar.gz";
|
||||
# url = "https://bitbucket.org/${owner}/${repo}/get/${lib.strings.escapeURL rev}.tar.gz";
|
||||
url = "https://bitbucket.org/${owner}/${repo}/get/${lib.strings.escapeURL rev}.tar.gz";
|
||||
meta.homepage = "https://bitbucket.org/${owner}/${repo}/";
|
||||
}
|
||||
// removeAttrs args [
|
||||
|
||||
Reference in New Issue
Block a user