mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
		| @@ -165,13 +165,13 @@ func rawMerge(ctx context.Context, pr *models.PullRequest, doer *user_model.User | ||||
| 	} | ||||
|  | ||||
| 	infoPath := filepath.Join(tmpBasePath, ".git", "info") | ||||
| 	if err := os.MkdirAll(infoPath, 0700); err != nil { | ||||
| 	if err := os.MkdirAll(infoPath, 0o700); err != nil { | ||||
| 		log.Error("Unable to create .git/info in %s: %v", tmpBasePath, err) | ||||
| 		return "", fmt.Errorf("Unable to create .git/info in tmpBasePath: %v", err) | ||||
| 	} | ||||
|  | ||||
| 	sparseCheckoutListPath := filepath.Join(infoPath, "sparse-checkout") | ||||
| 	if err := os.WriteFile(sparseCheckoutListPath, []byte(sparseCheckoutList), 0600); err != nil { | ||||
| 	if err := os.WriteFile(sparseCheckoutListPath, []byte(sparseCheckoutList), 0o600); err != nil { | ||||
| 		log.Error("Unable to write .git/info/sparse-checkout file in %s: %v", tmpBasePath, err) | ||||
| 		return "", fmt.Errorf("Unable to write .git/info/sparse-checkout file in tmpBasePath: %v", err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user