fetchGit: Fix broken assertion

Different URIs can map to the same cache entry if they have the same
revision.
This commit is contained in:
Eelco Dolstra 2017-10-30 12:55:17 +01:00
parent 812e027e1d
commit a5c392a80e
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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"];