Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libfetchers/github.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ struct GitArchiveInputScheme : InputScheme
bool isLocked(const Input & input) const override
{
/* Since we can't verify the integrity of the tarball from the
Git revision alone, we also require a Git tree hash for
Git revision alone, we also require a Git tree hash or NAR hash for
locking. */
return input.getRev().has_value() && getTreeHash(input).has_value();
return input.getRev().has_value() && (getTreeHash(input).has_value() || input.getNarHash().has_value());
}

std::optional<ExperimentalFeature> experimentalFeature() const override
Expand Down