From 0894599be9704b27ac84319f5e133548848dbca2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Dec 2012 10:25:34 -0500 Subject: [PATCH] HACK work around missing index entry for existing empty submodules --- t/t7400-submodule-basic.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 0b9a2612e..26b179f57 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -657,7 +657,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 && -- 2.26.2