Don't initialize repositories until after we've loaded TREES.

Review Request #14567 — Created Aug. 21, 2025 and submitted

Information

RBTools
master

Reviewers

I'm not sure when this regressed (perhaps a bad merge at some point),
but running commands that use repositories were not loading
configuration from the TREES setting first. This meant that if a given
checkout required configuration from that setting in order to properly
initialize the repository, commands would error out.

This change reorders things so we load data from TREES before requiring
the repository to be present.

Successfully used rbt stamp in a checkout that required TREES.

Summary ID
Don't initialize repositories until after we've loaded TREES.
I'm not sure when this regressed (perhaps a bad merge at some point), but running commands that use repositories were not loading configuration from the `TREES` setting first. This meant that if a given checkout required configuration from that setting in order to properly initialize the repository, commands would error out. This change reorders things so we load data from TREES before requiring the repository to be present. Testing Done: Successfully used `rbt stamp` in a checkout that required `TREES`.
tnumxksxzuskkqwqwmprqvylykokpnrz
maubin
  1. Ship It!
  2. 
      
david
maubin
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (9b3ff25)