aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2020-03-17 14:27:58 +0100
committerJulian Stecklina <js@alien8.de>2020-03-29 22:29:58 +0200
commit369fffd6f1f7d939e528b3591dca49989c51ae35 (patch)
treeffc4417dccfe1678eef23f438b74e84319c6dfd9 /src/libexpr
parent6864ad7cf510d96f0cfc0cdbeffc1188a4eab44c (diff)
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.
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops/fetchGit.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/primops/fetchGit.cc b/src/libexpr/primops/fetchGit.cc
index 653d99b53..969b1a4ed 100644
--- a/src/libexpr/primops/fetchGit.cc
+++ b/src/libexpr/primops/fetchGit.cc
@@ -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());