mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	#2154 minor fix
This commit is contained in:
		@@ -303,7 +303,7 @@ SCHEDULE = @every 1h
 | 
				
			|||||||
[cron.repo_health_check]
 | 
					[cron.repo_health_check]
 | 
				
			||||||
SCHEDULE = @every 24h
 | 
					SCHEDULE = @every 24h
 | 
				
			||||||
TIMEOUT = 60s
 | 
					TIMEOUT = 60s
 | 
				
			||||||
; Arguments for command 'git fsck', e.g.: "--unreachable --tags"
 | 
					; Arguments for command 'git fsck', e.g. "--unreachable --tags"
 | 
				
			||||||
; see more on http://git-scm.com/docs/git-fsck/1.7.5
 | 
					; see more on http://git-scm.com/docs/git-fsck/1.7.5
 | 
				
			||||||
ARGS = 
 | 
					ARGS = 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -314,7 +314,7 @@ SCHEDULE = @every 24h
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[git]
 | 
					[git]
 | 
				
			||||||
MAX_GIT_DIFF_LINES = 10000
 | 
					MAX_GIT_DIFF_LINES = 10000
 | 
				
			||||||
; Arguments for command 'git gc', e.g.: "--aggressive --auto"
 | 
					; Arguments for command 'git gc', e.g. "--aggressive --auto"
 | 
				
			||||||
; see more on http://git-scm.com/docs/git-gc/1.7.5
 | 
					; see more on http://git-scm.com/docs/git-gc/1.7.5
 | 
				
			||||||
GC_ARGS = 
 | 
					GC_ARGS = 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,7 +40,7 @@ func Settings(ctx *middleware.Context) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func handlerUsernameChange(ctx *middleware.Context, newName string) {
 | 
					func handlerUsernameChange(ctx *middleware.Context, newName string) {
 | 
				
			||||||
	if len(newName) == 0 {
 | 
						if len(newName) == 0 || !ctx.User.IsLocal() {
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user