mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Fix fetchGit
This commit is contained in:
parent
066ed1c830
commit
31d8f3369d
2 changed files with 3 additions and 2 deletions
|
@ -225,7 +225,7 @@ static void fetchTree(
|
|||
params.emptyRevFallback,
|
||||
false);
|
||||
|
||||
//state.allowPath(tree.storePath);
|
||||
state.allowPath(tree.storePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,8 @@ std::optional<std::string> readHead(const Path & path)
|
|||
});
|
||||
if (status != 0) return std::nullopt;
|
||||
|
||||
std::string_view line = output.substr(0, line.find("\n"));
|
||||
std::string_view line = output;
|
||||
line = line.substr(0, line.find("\n"));
|
||||
if (const auto parseResult = git::parseLsRemoteLine(line)) {
|
||||
switch (parseResult->kind) {
|
||||
case git::LsRemoteRefLine::Kind::Symbolic:
|
||||
|
|
Loading…
Reference in a new issue