mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	bug fixed
This commit is contained in:
		| @@ -200,6 +200,7 @@ func CreateRepository(user *User, repoName, desc, repoLang, license string, priv | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	c := exec.Command("git", "update-server-info") | 	c := exec.Command("git", "update-server-info") | ||||||
|  | 	c.Dir = repoPath | ||||||
| 	err = c.Run() | 	err = c.Run() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		log.Error("repo.CreateRepository(exec update-server-info): %v", err) | 		log.Error("repo.CreateRepository(exec update-server-info): %v", err) | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								serve.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								serve.go
									
									
									
									
									
								
							| @@ -281,6 +281,7 @@ func runServ(k *cli.Context) { | |||||||
|  |  | ||||||
| 		//runUpdate(k) | 		//runUpdate(k) | ||||||
| 		c := exec.Command("git", "update-server-info") | 		c := exec.Command("git", "update-server-info") | ||||||
|  | 		c.Dir = models.RepoPath(user.Name, repoName) | ||||||
| 		err := c.Run() | 		err := c.Run() | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			log.Error("update-server-info: %v", err) | 			log.Error("update-server-info: %v", err) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user