Remove unused cacheType field

This commit is contained in:
Eelco Dolstra 2023-11-15 14:08:34 +01:00
parent 2890999911
commit 5dd4ae8687

View file

@ -323,8 +323,6 @@ struct GitInputScheme : InputScheme
bool submodules = false; bool submodules = false;
bool allRefs = false; bool allRefs = false;
std::string cacheType;
/* Whether this is a local, non-bare repository. */ /* Whether this is a local, non-bare repository. */
bool isLocal = false; bool isLocal = false;
@ -371,11 +369,6 @@ struct GitInputScheme : InputScheme
.allRefs = maybeGetBoolAttr(input.attrs, "allRefs").value_or(false) .allRefs = maybeGetBoolAttr(input.attrs, "allRefs").value_or(false)
}; };
repoInfo.cacheType = "git";
if (repoInfo.shallow) repoInfo.cacheType += "-shallow";
if (repoInfo.submodules) repoInfo.cacheType += "-submodules";
if (repoInfo.allRefs) repoInfo.cacheType += "-all-refs";
// file:// URIs are normally not cloned (but otherwise treated the // file:// URIs are normally not cloned (but otherwise treated the
// same as remote URIs, i.e. we don't use the working tree or // same as remote URIs, i.e. we don't use the working tree or
// HEAD). Exception: If _NIX_FORCE_HTTP is set, or the repo is a bare git // HEAD). Exception: If _NIX_FORCE_HTTP is set, or the repo is a bare git