Skip to content

Commit 90ca8c3

Browse files
committed
Fix submodules
1 parent 5827814 commit 90ca8c3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libfetchers/git-utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ ref<GitRepo> GitRepo::openRepo(const std::filesystem::path & path, bool create,
740740

741741
std::string GitAccessorOptions::makeFingerprint(const Hash & rev) const
742742
{
743-
return rev.gitRev() + (exportIgnore ? ";e" : "") + (smudgeLfs ? ";l" : "") + (submodules ? ";s" : "");
743+
return rev.gitRev() + (exportIgnore ? ";e" : "") + (smudgeLfs ? ";l" : "");
744744
}
745745

746746
/**

src/libfetchers/git.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,8 +908,10 @@ struct GitInputScheme : InputScheme
908908
}
909909

910910
if (!mounts.empty()) {
911+
auto newFingerprint = accessor->getFingerprint(CanonPath::root).second->append(";s");
911912
mounts.insert_or_assign(CanonPath::root, accessor);
912913
accessor = makeMountedSourceAccessor(std::move(mounts));
914+
accessor->fingerprint = newFingerprint;
913915
}
914916
}
915917

0 commit comments

Comments
 (0)