3 # Copyright (c) 2010 Brad King
6 test_description
='git update-index for gitlink to .git file.
9 TEST_PASSES_SANITIZE_LEAK
=true
12 test_expect_success
'submodule with absolute .git file' '
16 REAL="$(pwd)/.real" &&
18 echo "gitdir: $REAL" >.git &&
22 test_expect_success
'add gitlink to absolute .git file' '
23 git update-index --add -- sub1
26 test_expect_success
'submodule with relative .git file' '
31 echo "gitdir: .real" >.git &&
35 test_expect_success
'add gitlink to relative .git file' '
36 git update-index --add -- sub2