From a5c392a80e2965f0bf4855309a1ae326ff625ba2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Oct 2017 12:55:17 +0100 Subject: fetchGit: Fix broken assertion Different URIs can map to the same cache entry if they have the same revision. --- src/libexpr/primops/fetchgit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/primops/fetchgit.cc b/src/libexpr/primops/fetchgit.cc index 81b641900593..2b1d366ff4a5 100644 --- a/src/libexpr/primops/fetchgit.cc +++ b/src/libexpr/primops/fetchgit.cc @@ -73,7 +73,7 @@ GitInfo exportGit(ref 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"]; -- cgit 1.4.1