summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSascha Cunz <Sascha@BabbelBox.org>2012-07-25 01:14:58 +0200
committerSascha Cunz <Sascha@BabbelBox.org>2012-07-26 22:36:43 +0200
commitcb020f0d9936f221c6bd6f873994e8978657cd28 (patch)
treec139c3950e14eeb75f72b5b3f588ccc102a45396 /src
parent0aeae70553beb06d8df288232f1a1d345631f3cd (diff)
downloadlibgit2-cb020f0d9936f221c6bd6f873994e8978657cd28.tar.gz
Remove unneccessary string transformation
Diffstat (limited to 'src')
-rw-r--r--src/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c
index e46249e1..c0819ffe 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) {