mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	* fix bug create/edit wiki pages when code master branch protected * improve FullPushingEnvironment function
This commit is contained in:
		| @@ -217,7 +217,13 @@ func (repo *Repository) updateWikiPage(doer *User, oldWikiName, newWikiName, con | ||||
| 	if err := git.Push(basePath, git.PushOptions{ | ||||
| 		Remote: "origin", | ||||
| 		Branch: fmt.Sprintf("%s:%s%s", commitHash.String(), git.BranchPrefix, "master"), | ||||
| 		Env:    PushingEnvironment(doer, repo), | ||||
| 		Env: FullPushingEnvironment( | ||||
| 			doer, | ||||
| 			doer, | ||||
| 			repo, | ||||
| 			repo.Name+".wiki", | ||||
| 			0, | ||||
| 		), | ||||
| 	}); err != nil { | ||||
| 		log.Error("%v", err) | ||||
| 		return fmt.Errorf("Push: %v", err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user