diff: respect MIN_BLOCK_LENGTH for last block
[gitweb.git] / t / t1407-worktree-ref-store.sh
index 04d1e9d177e3f428bf4dd8f4e2173de5eee35777..5df06f355641ad7a38daf34f9fc841e7fe4f8a0f 100755 (executable)
@@ -37,4 +37,16 @@ test_expect_success 'resolve_ref(<per-worktree-ref>)' '
        test_cmp expected actual
 '
 
+test_expect_success 'create_symref(FOO, refs/heads/master)' '
+       $RWT create-symref FOO refs/heads/master nothing &&
+       echo refs/heads/master >expected &&
+       git -C wt symbolic-ref FOO >actual &&
+       test_cmp expected actual &&
+
+       $RMAIN create-symref FOO refs/heads/wt-master nothing &&
+       echo refs/heads/wt-master >expected &&
+       git symbolic-ref FOO >actual &&
+       test_cmp expected actual
+'
+
 test_done