fetchGit: add submodules attribute to the .link file

The .link file is used as a lock, so I think we should put the
"submodule" attribute in there since turning on submodules creates a new
.link file path.
This commit is contained in:
Bjørn Forsman 2020-03-17 14:27:58 +01:00 committed by Julian Stecklina
parent 6864ad7cf5
commit 369fffd6f1

View file

@ -211,6 +211,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
json["name"] = name;
json["rev"] = gitInfo.rev;
json["revCount"] = gitInfo.revCount;
json["submodules"] = gitInfo.submodules;
writeFile(storeLink, json.dump());