mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 03:29:40 +00:00 
			
		
		
		
	Fix context usages (#35348)
This commit is contained in:
		| @@ -4,7 +4,6 @@ | ||||
| package attribute | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"fmt" | ||||
| 	"os" | ||||
| 	"testing" | ||||
| @@ -22,7 +21,7 @@ func testRun(m *testing.M) error { | ||||
| 	defer util.RemoveAll(gitHomePath) | ||||
| 	setting.Git.HomePath = gitHomePath | ||||
|  | ||||
| 	if err = git.InitFull(context.Background()); err != nil { | ||||
| 	if err = git.InitFull(); err != nil { | ||||
| 		return fmt.Errorf("failed to call Init: %w", err) | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user