From cb020f0d9936f221c6bd6f873994e8978657cd28 Mon Sep 17 00:00:00 2001 From: Sascha Cunz Date: Wed, 25 Jul 2012 01:14:58 +0200 Subject: [PATCH] Remove unneccessary string transformation --- src/remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote.c b/src/remote.c index e46249e12..c0819ffeb 100644 --- a/src/remote.c +++ b/src/remote.c @@ -179,7 +179,7 @@ int git_remote_save(const git_remote *remote) if (git_repository_config__weakptr(&config, remote->repo) < 0) return -1; - if (git_buf_printf(&buf, "remote.%s.%s", remote->name, "url") < 0) + if (git_buf_printf(&buf, "remote.%s.url", remote->name) < 0) return -1; if (git_config_set_string(config, git_buf_cstr(&buf), remote->url) < 0) {