summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-12-19 16:51:37 -0800
committerBen Straub <bs@github.com>2012-12-19 17:02:06 -0800
commit621b50e4d55e98870b575b418a9b6fc8a024c65e (patch)
tree45d2d0ccaf15b9728af7ef978093bdfad5ae622d /src/clone.c
parentb412d5638929f8b08ea63d862a1a46b3d9f9e4c9 (diff)
downloadlibgit2-621b50e4d55e98870b575b418a9b6fc8a024c65e.tar.gz
Clone: trust but verify
Diffstat (limited to 'src/clone.c')
-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;