mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Be more strict with git arguments (#7715)
* Be more strict with git arguments * fix-up commit test * use bindings for branch name
This commit is contained in:
		| @@ -39,7 +39,7 @@ func (repo *Repository) GetMergeBase(tmpRemote string, base, head string) (strin | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	stdout, err := NewCommand("merge-base", base, head).RunInDir(repo.Path) | ||||
| 	stdout, err := NewCommand("merge-base", "--", base, head).RunInDir(repo.Path) | ||||
| 	return strings.TrimSpace(stdout), base, err | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user