mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Commitless repos should be bare
This commit is contained in:
		@@ -517,7 +517,7 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Change repository bare status and update last updated time.
 | 
			
		||||
	repo.IsBare = false
 | 
			
		||||
	repo.IsBare = repo.IsBare && opts.Commits.Len <= 0
 | 
			
		||||
	if err = UpdateRepository(repo, false); err != nil {
 | 
			
		||||
		return fmt.Errorf("UpdateRepository: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user