Commit 16210877c97431af23f1b9549d997b406c6e9116

Steven King Jr 2018-02-28T12:59:47

Unescape repo before constructing ssh request

diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index 2ba91b7..42f9bff 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -89,15 +89,19 @@ done:
 		return -1;
 	}
 
+	repo = gitno_unescape(git__strdup(repo));
+
 	len = strlen(cmd) + 1 /* Space */ + 1 /* Quote */ + strlen(repo) + 1 /* Quote */ + 1;
 
 	git_buf_grow(request, len);
 	git_buf_printf(request, "%s '%s'", cmd, repo);
 	git_buf_putc(request, '\0');
 
+	git__free(repo);
+
 	if (git_buf_oom(request))
 		return -1;
-
+	
 	return 0;
 }