branch: use BRANCH_COLOR_LOCAL in ref-filter format
[gitweb.git] / t / t2025-worktree-add.sh
index 4bcc335a19f9d7864560945ed0f430728d0f1986..b618d6be21ff8926cb0d9dff1881c6e5e9eeb35a 100755 (executable)
@@ -138,6 +138,14 @@ test_expect_success 'checkout from a bare repo without "add"' '
        )
 '
 
+test_expect_success '"add" default branch of a bare repo' '
+       (
+               git clone --bare . bare2 &&
+               cd bare2 &&
+               git worktree add ../there3 master
+       )
+'
+
 test_expect_success 'checkout with grafts' '
        test_when_finished rm .git/info/grafts &&
        test_commit abc &&