mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Migration Tweaks (#6260)
* Adds auto-name if repo name is blank Adds error checking before sanitization in migration Signed-off-by: jolheiser <john.olheiser@gmail.com> * Changed err from sanitization to a different variable Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove handleCreatePost and implement separately Signed-off-by: jolheiser <john.olheiser@gmail.com> * Make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							160e7edd04
						
					
				
				
					commit
					2a8037fe4e
				
			@@ -2160,6 +2160,14 @@ $(document).ready(function () {
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    var $cloneAddr = $('#clone_addr');
 | 
			
		||||
    $cloneAddr.change(function() {
 | 
			
		||||
        var $repoName = $('#repo_name');
 | 
			
		||||
        if ($cloneAddr.val().length > 0 && $repoName.val().length === 0) { // Only modify if repo_name input is blank
 | 
			
		||||
            $repoName.val($cloneAddr.val().match(/^(.*\/)?((.+?)(\.git)?)$/)[3]);
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
function changeHash(hash) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user