mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Use correct remote on Windows (#6313)
This commit is contained in:
		@@ -200,7 +200,7 @@ func main() {
 | 
				
			|||||||
	log.Printf("Fetching PR #%s in %s\n", pr, branch)
 | 
						log.Printf("Fetching PR #%s in %s\n", pr, branch)
 | 
				
			||||||
	if runtime.GOOS == "windows" {
 | 
						if runtime.GOOS == "windows" {
 | 
				
			||||||
		//Use git cli command for windows
 | 
							//Use git cli command for windows
 | 
				
			||||||
		runCmd("git", "fetch", "origin", fmt.Sprintf("pull/%s/head:%s", pr, branch))
 | 
							runCmd("git", "fetch", remoteUpstream, fmt.Sprintf("pull/%s/head:%s", pr, branch))
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		ref := fmt.Sprintf("refs/pull/%s/head:%s", pr, branchRef)
 | 
							ref := fmt.Sprintf("refs/pull/%s/head:%s", pr, branchRef)
 | 
				
			||||||
		err = repo.Fetch(&git.FetchOptions{
 | 
							err = repo.Fetch(&git.FetchOptions{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user