diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-30 12:55:17 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-30 12:55:46 +0100 |
commit | a5c392a80e2965f0bf4855309a1ae326ff625ba2 (patch) | |
tree | af03b6bbdc4271d5064c40be76674398a71e5c18 /src/libexpr/primops | |
parent | 812e027e1d5a4f83394069edd67bdf8404ffa2bb (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.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchgit.cc b/src/libexpr/primops/fetchgit.cc index 81b641900..2b1d366ff 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"]; |