diff options
author | Ben Straub <bs@github.com> | 2012-12-19 16:51:37 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-19 17:02:06 -0800 |
commit | 621b50e4d55e98870b575b418a9b6fc8a024c65e (patch) | |
tree | 45d2d0ccaf15b9728af7ef978093bdfad5ae622d /src/clone.c | |
parent | b412d5638929f8b08ea63d862a1a46b3d9f9e4c9 (diff) | |
download | libgit2-621b50e4d55e98870b575b418a9b6fc8a024c65e.tar.gz |
Clone: trust but verify
Diffstat (limited to 'src/clone.c')
-rw-r--r-- | src/clone.c | 3 |
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; |