3 # Copyright (c) 2010 Brad King
6 test_description='git update-index for gitlink to .git file.
11 test_expect_success 'submodule with absolute .git file' '
15 REAL="$(pwd)/.real" &&
17 echo "gitdir: $REAL" >.git &&
21 test_expect_success 'add gitlink to absolute .git file' '
22 git update-index --add -- sub1
25 test_expect_success 'submodule with relative .git file' '
30 echo "gitdir: .real" >.git &&
34 test_expect_success 'add gitlink to relative .git file' '
35 git update-index --add -- sub2