mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
Fix path concatenation
This commit is contained in:
parent
b6cf6e5553
commit
84c273c503
4 changed files with 34 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue