summaryrefslogtreecommitdiff
path: root/src/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote.c')
-rw-r--r--src/remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c
index 2812f5de6..809bfbb57 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -110,6 +110,7 @@ int git_remote_get(git_remote **out, git_config *cfg, const char *name)
goto cleanup;
}
+ remote->repo = cfg->repo;
remote->url = git__strdup(val);
if (remote->url == NULL) {
error = GIT_ENOMEM;