From 65c059401195ec1873ad2a04eba93c8438786dbe Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 30 Oct 2014 10:58:50 +0100 Subject: [PATCH] ostree-repo-pull: Fix inverted assert condition for maxdepth Signed-off-by: Giuseppe Scrivano --- src/libostree/ostree-repo-pull.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index f687ab99..e1ca4351 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -1338,7 +1338,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, (void) g_variant_lookup (options, "depth", "i", &pull_data->maxdepth); } - g_return_val_if_fail (pull_data->maxdepth < -1, FALSE); + g_return_val_if_fail (pull_data->maxdepth >= -1, FALSE); if (dir_to_pull) g_return_val_if_fail (dir_to_pull[0] == '/', FALSE);