]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7400-submodule-basic.sh
recursive submodules: test for relative paths
authorStefan Beller <sbeller@google.com>
Thu, 31 Mar 2016 21:04:36 +0000 (14:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2016 22:18:28 +0000 (15:18 -0700)
commit3fea121df31c108ee9c52fd888a90d68a3bbb2b2
tree6f223e3ad4b4d35a7403d1289dee87b290474ed3
parentee8838d157761acf4cc38f2378277dc894c10eb0
recursive submodules: test for relative paths

"git submodule update --init --recursive" uses full path to refer to
the true location of the repository in the "gitdir:" pointer for
nested submodules; the command used to use relative paths.

This was reported by Norio Nomura in $gmane/290280.

The root cause for that bug is in using recursive submodules as
their relative path handling was broken in ee8838d (2015-09-08,
submodule: rewrite `module_clone` shell function in C).

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7400-submodule-basic.sh