summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clone.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clone.c b/src/clone.c
index 9bbbe3d82..7e3427b5b 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -295,6 +295,9 @@ static int create_and_configure_origin(
(error = git_remote_set_pushurl(origin, options->pushurl)) < 0)
goto on_error;
+ if ((error = git_remote_save(origin)) < 0)
+ goto on_error;
+
*out = origin;
return 0;