Fix context usages (#35348)

This commit is contained in:
wxiaoguang authored and GitHub committed 2025-08-27 11:00:01 +00:00
1 parent da5ce5c8e7
commit e837c998b7
48 files changed
+98 -100

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ func setup(ctx context.Context, debug bool) {
_ = fail(ctx, "Unable to access repository path", "Unable to access repository path %q, err: %v", setting.RepoRootPath, err)
return
}
if err := git.InitSimple(context.Background()); err != nil {
if err := git.InitSimple(); err != nil {
_ = fail(ctx, "Failed to init git", "Failed to init git, err: %v", err)
}
}