Code

Merge branch 'jl/submodule-add-relurl-wo-upstream' into maint
[git.git] / t / t7400-submodule-basic.sh
index 9099e80e9e2bde606ca481dd4a0a9cc977c8d38e..662fe91295262976c2a541d296194d3d2e9dcc5f 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/*'