Merge branch 'jc/pack-order-tweak'
[gitweb.git] / t / t7400-submodule-basic.sh
index 5afe6ccd78f7171c6bdbb5be35d9663a618c1c73..14dc92723c3dc96c1c3c15724df668226edf578e 100755 (executable)
@@ -47,8 +47,10 @@ test_expect_success 'setup - repository to add submodules to' '
 '
 
 # The 'submodule add' tests need some repository to add as a submodule.
-# The trash directory is a good one as any.
-submodurl=$TRASH_DIRECTORY
+# The trash directory is a good one as any. We need to canonicalize
+# the name, though, as some tests compare it to the absolute path git
+# generates, which will expand symbolic links.
+submodurl=$(pwd -P)
 
 listbranches() {
        git for-each-ref --format='%(refname)' 'refs/heads/*'