Don't pass non-checksums to ostree_repo_has_object()

The 'ostree show' command passed non-checksum arguments
to the ostree_repo_has_object() function which led to
an assertion.

https://bugzilla.gnome.org/show_bug.cgi?id=705967
This commit is contained in:
Stef Walter committed 2013-08-14 16:08:18 +02:00
1 parent 8c31e6fda7
commit 1904e3e0f4
2 files changed
+9 -6

No files matched your search

+4 -1
View File
@@ -19,7 +19,7 @@
set -e
echo "1..35"
echo "1..36"
. $(dirname $0)/libtest.sh
@@ -245,3 +245,6 @@ cd ${test_tmpdir}
$OSTREE ls test2
echo "ok ls with no argument"
cd ${test_tmpdir}
$OSTREE show test2
echo "ok show with non-checksum"