Skip to content

Commit dc1e863

Browse files
main sync dep update oss
1 parent 2a74e0b commit dc1e863

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-sensor/pkg/git/GitBaseManager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ func (impl *GitManagerBaseImpl) createCmdWithContext(ctx GitContext, name string
410410
}
411411

412412
// Run git gc --prune=now to clean up temp.pack files left by killed git commands
413-
if impl.conf.EnableManualGitGc && name == "git" && command == "fetch" {
413+
if impl.conf.EnableManualGitGc && command == "fetch" {
414414
if rootDir := impl.extractRootDirFromArgs(arg); rootDir != "" {
415415
impl.runGitGcWithTimeout(rootDir, 5*time.Minute)
416416
}

0 commit comments

Comments
 (0)