mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix #2042
This commit is contained in:
		@@ -5,7 +5,7 @@ Gogs - Go Git Service [
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### Current version: 0.7.22 Beta
 | 
					##### Current version: 0.7.24 Beta
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<table>
 | 
					<table>
 | 
				
			||||||
    <tr>
 | 
					    <tr>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.7.22.1125 Beta"
 | 
					const APP_VER = "0.7.24.1130 Beta"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1120,6 +1120,7 @@ func DeleteRepository(uid, repoID int64) error {
 | 
				
			|||||||
		&Access{RepoID: repo.ID},
 | 
							&Access{RepoID: repo.ID},
 | 
				
			||||||
		&Action{RepoID: repo.ID},
 | 
							&Action{RepoID: repo.ID},
 | 
				
			||||||
		&Watch{RepoID: repoID},
 | 
							&Watch{RepoID: repoID},
 | 
				
			||||||
 | 
							&Star{RepoID: repoID},
 | 
				
			||||||
		&Mirror{RepoID: repoID},
 | 
							&Mirror{RepoID: repoID},
 | 
				
			||||||
		&IssueUser{RepoID: repoID},
 | 
							&IssueUser{RepoID: repoID},
 | 
				
			||||||
		&Milestone{RepoID: repoID},
 | 
							&Milestone{RepoID: repoID},
 | 
				
			||||||
@@ -1571,7 +1572,7 @@ func CheckRepoStats() {
 | 
				
			|||||||
		repoStatsCheck(checkers[i])
 | 
							repoStatsCheck(checkers[i])
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// FIXME: use checker when v0.8, stop supporting old fork repo format.
 | 
						// FIXME: use checker when v0.9, stop supporting old fork repo format.
 | 
				
			||||||
	// ***** START: Repository.NumForks *****
 | 
						// ***** START: Repository.NumForks *****
 | 
				
			||||||
	results, err := x.Query("SELECT repo.id FROM `repository` repo WHERE repo.num_forks!=(SELECT COUNT(*) FROM `repository` WHERE fork_id=repo.id)")
 | 
						results, err := x.Query("SELECT repo.id FROM `repository` repo WHERE repo.num_forks!=(SELECT COUNT(*) FROM `repository` WHERE fork_id=repo.id)")
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.7.22.1125 Beta
 | 
					0.7.24.1130 Beta
 | 
				
			||||||
		Reference in New Issue
	
	Block a user