Commit da0740ea authored by Duy Nguyen's avatar Duy Nguyen

submodule update: add tests for multiple worktrees

There are no changes needed for 'submodule update'. The clones will be
per-worktree (because $GIT_DIR/modules is already per-worktree) and all
the support is already in place. Add a test to make sure it actually
parent 3d3144ec
......@@ -74,4 +74,15 @@ test_expect_success 'init submodules' '
! test -d cloned/.git/worktrees/secondary/modules/sub2
test_expect_success 'update submodules' '
cd cloned &&
git submodule update sub1 &&
cd secondary &&
git submodule update sub2
) &&
test -d cloned/.git/modules/sub1 &&
test -d cloned/.git/worktrees/secondary/modules/sub2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment