diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2022-12-24 18:08:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 11:08:14 -0600 |
commit | 784c935169aa41a8837eca51d3852f3ee0f3d223 (patch) | |
tree | f8275533ee5a1cd5ac71b73baa4284367cf27b69 /src/modules/git_commit.rs | |
parent | d0848b460a59b952a6a0b512f710a2c1b3b354c7 (diff) |
build(deps): update gitoxide crates (#4748)
* build(deps): update gitoxide crates
* remove call to removed function (env is loaded automatically now)
* bump git-repository to v0.30.1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Diffstat (limited to 'src/modules/git_commit.rs')
-rw-r--r-- | src/modules/git_commit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/git_commit.rs b/src/modules/git_commit.rs index 122c27b58..1296f3043 100644 --- a/src/modules/git_commit.rs +++ b/src/modules/git_commit.rs @@ -51,8 +51,8 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { } fn git_tag(repo: &Repo, config: &GitCommitConfig) -> Option<String> { - // allow environment variables like GITOXIDE_OBJECT_CACHE_MEMORY and GITOXIDE_DISABLE_PACK_CACHE to speed up operation for some repos - let mut git_repo = repo.open().apply_environment(); + let mut git_repo = repo.open(); + // Increase the default object cache size to speed up operation for some repos git_repo.object_cache_size_if_unset(4 * 1024 * 1024); let head_commit = git_repo.head_commit().ok()?; |