summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2014-10-30 10:58:50 +0100
committerColin Walters <walters@verbum.org>2014-10-30 11:46:02 -0400
commit65c059401195ec1873ad2a04eba93c8438786dbe (patch)
tree9880d065a12eb11189a7a3c50df046ba4f8488ac
parentedc3b9a56e1a280d446e596425ff39090f70d59e (diff)
downloadostree-65c059401195ec1873ad2a04eba93c8438786dbe.tar.gz
ostree-repo-pull: Fix inverted assert condition for maxdepth
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--src/libostree/ostree-repo-pull.c2
1 files changed, 1 insertions, 1 deletions
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);