mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +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,
|
params.emptyRevFallback,
|
||||||
false);
|
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;
|
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)) {
|
if (const auto parseResult = git::parseLsRemoteLine(line)) {
|
||||||
switch (parseResult->kind) {
|
switch (parseResult->kind) {
|
||||||
case git::LsRemoteRefLine::Kind::Symbolic:
|
case git::LsRemoteRefLine::Kind::Symbolic:
|
||||||
|
|
Loading…
Add table
Reference in a new issue