Skip to content

Commit

Permalink
fetchGit: Fix broken assertion
Browse files Browse the repository at this point in the history
Different URIs can map to the same cache entry if they have the same
revision.
  • Loading branch information
edolstra committed Oct 30, 2017
1 parent 812e027 commit a5c392a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops/fetchgit.cc
Expand Up @@ -73,7 +73,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
// FIXME: doesn't handle empty lines
auto json = nlohmann::json::parse(readFile(storeLink));

assert(json["uri"] == uri && json["name"] == name && json["rev"] == gitInfo.rev);
assert(json["name"] == name && json["rev"] == gitInfo.rev);

gitInfo.storePath = json["storePath"];

Expand Down

0 comments on commit a5c392a

Please sign in to comment.