main/remote: Add a show-url operation to the remote command

Useful to get the remote url in scripts.

https://bugzilla.gnome.org/show_bug.cgi?id=710967
This commit is contained in:
Daniel Narvaez authored and Colin Walters committed 2013-10-28 09:14:23 -04:00
1 parent 73ff642b15
commit 03aa10f17d
2 files changed
+25 -6

No files matched your search

+5
View File
@@ -305,3 +305,8 @@ assert_file_has_content repo/config 'tls-permissive=true'
assert_file_has_content repo/config 'remote\.example\.com'
echo "ok remote add with set"
cd ${test_tmpdir}
${CMD_PREFIX} ostree --repo=repo remote show-url aremote > aremote-url.txt
assert_file_has_content aremote-url.txt 'http.*remote\.example\.com/repo'
echo "ok remote show-url"