Fix issues when running rbt commands outside of a repository with TREES.
Review Request #14396 — Created April 4, 2025 and submitted — Latest diff uploaded
When running some rbt commands outside of a repository (such as
rbt api-get
orrbt patch --print
) and using theTREES
configuration to define the server URL, rbtools would exit with a
message about being unable to find a repository. This was a regression
caused by the previous fix in 5.2 to allow these commands to use TREES.This fix plumbs through the
tool_required
flag to
scan_usable_client
, making it so we don't exit if we don't find a tool
at all.
- Ran unit tests.
- Was able to successfully use
rbt patch --print
,rbt patch --write
,
andrbt api-get
outside of any source tree when usingTREES
to
define the server URL. - Verified that
TREES
still worked as expected.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
Commits
docs/releasenotes/5.2.1.rst |
---|
docs/releasenotes/index.rst |
---|
rbtools/clients/__init__.py |
---|
rbtools/commands/base/commands.py |
---|