about summary refs log tree commit diff
path: root/src/libexpr/primops
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-30T11·55+0100
committerEelco Dolstra <edolstra@gmail.com>2017-10-30T11·55+0100
commita5c392a80e2965f0bf4855309a1ae326ff625ba2 (patch)
treeaf03b6bbdc4271d5064c40be76674398a71e5c18 /src/libexpr/primops
parent812e027e1d5a4f83394069edd67bdf8404ffa2bb (diff)
fetchGit: Fix broken assertion
Different URIs can map to the same cache entry if they have the same
revision.
Diffstat (limited to 'src/libexpr/primops')
-rw-r--r--src/libexpr/primops/fetchgit.cc2
1 files changed, 1 insertions, 1 deletions
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> 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"];