This change makes JjWrapper a no-op for secondary JJ workspaces that do not have a .git directory or worktree. It now holds an instance of GitWrapper and forwards commands to it only if a .git directory or worktree exists.
In particular, this allows gclient sync to run in secondary workspaces without fetching the git repository for the root.
Change-Id: Id89a83d7ce193304847dd75bbffa133e6a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7780501
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Matt Stark <msta@google.com>
Commit-Queue: Matt Stark <msta@google.com>
changes/01/7780501/4
Sunny Sachanandani1 day agocommitted byinfra-scoped@luci-project-accounts.iam.gserviceaccount.com