From: W. Trevor King Date: Sun, 2 Dec 2012 15:25:34 +0000 (-0500) Subject: HACK work around missing index entry for existing empty submodules X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb5f43aaaa3587bc6a6eedadc6bdc89c578c63d2;p=git.git HACK work around missing index entry for existing empty submodules --- diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 97be72fac..a6b22018f 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -670,7 +670,13 @@ test_expect_success '../bar/a/b/c works with relative local path - ../foo/bar.gi cp pristine-.git-config .git/config && cp pristine-.gitmodules .gitmodules && mkdir -p a/b/c && - (cd a/b/c; git init) && + (cd a/b/c && + git init && +# HACK! work around no index changes for commit-less submodule addition + touch file && + git add file && + git commit -m "add file" + ) && git config remote.origin.url ../foo/bar.git && git submodule add ../bar/a/b/c ./a/b/c && git submodule init &&