mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-29 18:38:28 +00:00 
			
		
		
		
	bug fixed
This commit is contained in:
		| @@ -10,6 +10,7 @@ import ( | |||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"io/ioutil" | 	"io/ioutil" | ||||||
| 	"os" | 	"os" | ||||||
|  | 	"os/exec" | ||||||
| 	"path" | 	"path" | ||||||
| 	"path/filepath" | 	"path/filepath" | ||||||
| 	"regexp" | 	"regexp" | ||||||
| @@ -198,6 +199,12 @@ func CreateRepository(user *User, repoName, desc, repoLang, license string, priv | |||||||
| 		return nil, err | 		return nil, err | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	c := exec.Command("git", "update-server-info") | ||||||
|  | 	err = c.Run() | ||||||
|  | 	if err != nil { | ||||||
|  | 		log.Error("repo.CreateRepository(exec update-server-info): %v", err) | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	return repo, NewRepoAction(user, repo) | 	return repo, NewRepoAction(user, repo) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								serve.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								serve.go
									
									
									
									
									
								
							| @@ -280,7 +280,10 @@ func runServ(k *cli.Context) { | |||||||
| 		//fmt.Println("...", cmd) | 		//fmt.Println("...", cmd) | ||||||
|  |  | ||||||
| 		//runUpdate(k) | 		//runUpdate(k) | ||||||
| 		c := exec.Command("exec", "git", "update-server-info") | 		c := exec.Command("git", "update-server-info") | ||||||
| 		c.Run() | 		err := c.Run() | ||||||
|  | 		if err != nil { | ||||||
|  | 			log.Error("update-server-info: %v", err) | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user