[ostree] pull: Also fix misplaced remote name handling
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull: Also fix misplaced remote name handling
- Date: Mon, 29 Jun 2015 15:30:45 +0000 (UTC)
commit c8c239f94c9bbe41c959ac448a7a2ca2babf9013
Author: Colin Walters <walters verbum org>
Date: Mon Jun 29 11:20:41 2015 -0400
pull: Also fix misplaced remote name handling
We want to set the remote name only if we're operating on a remote
URL.
src/libostree/ostree-repo-pull.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index ff5bd3b..71469e9 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -1684,7 +1684,6 @@ ostree_repo_pull_with_options (OstreeRepo *self,
if (_ostree_repo_remote_name_is_file (remote_name_or_baseurl))
{
- pull_data->remote_name = g_strdup (remote_name_or_baseurl);
/* For compatibility with pull-local, don't gpg verify local
* pulls.
*/
@@ -1693,6 +1692,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
}
else
{
+ pull_data->remote_name = g_strdup (remote_name_or_baseurl);
if (!ostree_repo_remote_get_gpg_verify (self, remote_name_or_baseurl,
&pull_data->gpg_verify, error))
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]