Fix fetchGit

This commit is contained in:
Eelco Dolstra 2022-05-19 13:17:05 +02:00
parent 066ed1c830
commit 31d8f3369d
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 3 additions and 2 deletions

View file

@ -225,7 +225,7 @@ static void fetchTree(
params.emptyRevFallback,
false);
//state.allowPath(tree.storePath);
state.allowPath(tree.storePath);
}
}

View file

@ -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: