1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 15:48:00 +02:00

Fix path concatenation

This commit is contained in:
Eelco Dolstra 2022-05-12 14:48:25 +02:00
parent b6cf6e5553
commit 84c273c503
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 34 additions and 25 deletions

View file

@ -401,8 +401,13 @@ struct GitInputScheme : InputScheme
if (repoInfo.submodules)
gitOpts.emplace_back("--recurse-submodules");
return tokenizeString<std::set<std::string>>(
runProgram("git", true, gitOpts), "\0"s);
std::set<std::string> res;
for (auto & p : tokenizeString<std::set<std::string>>(
runProgram("git", true, gitOpts), "\0"s))
res.insert(canonPath("/" + p));
return res;
}
std::string getDefaultRef(const RepoInfo & repoInfo)