git: fix fetch not working

This commit is contained in:
Michael Muré 2018-07-25 18:00:41 +02:00
parent cbdba92704
commit 49c90eab26
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -102,7 +102,7 @@ func (repo *GitRepo) GetCoreEditor() (string, error) {
// FetchRefs fetch git refs from a remote
func (repo *GitRepo) FetchRefs(remote, refSpec string) error {
err := repo.runGitCommandInline("fetch", remote, "\""+refSpec+"\"")
err := repo.runGitCommandInline("fetch", remote, refSpec)
if err != nil {
return fmt.Errorf("failed to fetch from the remote '%s': %v", remote, err)