main: Support using repo from current directory
$ cd repo $ ostree ls foo / ... Can be a lot more convenient than typing --repo=repo a lot.
This commit is contained in:
1 parent
3de1d6589a
commit
187c75eae5
2 files changed
+19
-8
No files matched your search
+4
-1
@@ -19,7 +19,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "1..33"
|
||||
echo "1..34"
|
||||
|
||||
. $(dirname $0)/libtest.sh
|
||||
|
||||
@@ -34,6 +34,9 @@ $OSTREE rev-parse 'test2^'
|
||||
$OSTREE rev-parse 'test2^^' 2>/dev/null && (echo 1>&2 "rev-parse test2^^ unexpectedly succeeded!"; exit 1)
|
||||
echo "ok rev-parse"
|
||||
|
||||
(cd repo && ostree rev-parse test2)
|
||||
echo "ok repo-in-cwd"
|
||||
|
||||
$OSTREE refs > reflist
|
||||
assert_file_has_content reflist '^test2$'
|
||||
rm reflist
|
||||
|
||||
Reference in new issue
Block a user