mirror of
https://github.com/NixOS/nix.git
synced 2025-02-21 11:22:35 +00:00
Fix query parsing for path-like flakes
(cherry picked from commit f45d2ee2b7
)
This commit is contained in:
parent
ae451e2247
commit
f72b0b5b00
@ -90,7 +90,7 @@ std::pair<FlakeRef, std::string> parsePathFlakeRefWithFragment(
|
||||
fragment = percentDecode(url.substr(fragmentStart+1));
|
||||
}
|
||||
if (pathEnd != std::string::npos && fragmentStart != std::string::npos) {
|
||||
query = decodeQuery(url.substr(pathEnd+1, fragmentStart));
|
||||
query = decodeQuery(url.substr(pathEnd+1, fragmentStart-pathEnd-1));
|
||||
}
|
||||
|
||||
if (baseDir) {
|
||||
|
Loading…
Reference in New Issue
Block a user