git: fix fetch not working

Michael Muré created

Change summary

repository/git.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

repository/git.go 🔗

@@ -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)