projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08f67e
)
HACK work around missing index entry for existing empty submodules
wtk/remove-submodule-init-v0.5
author
W. Trevor King
<wking@tremily.us>
Sun, 2 Dec 2012 15:25:34 +0000
(10:25 -0500)
committer
W. Trevor King
<wking@tremily.us>
Sun, 2 Dec 2012 18:22:28 +0000
(13:22 -0500)
t/t7400-submodule-basic.sh
patch
|
blob
|
history
diff --git
a/t/t7400-submodule-basic.sh
b/t/t7400-submodule-basic.sh
index 0b9a2612e1d16c1038aae48e43072df0e5f14744..26b179f57d6ccb5fa76f8ed117c30e2f7a6bf79f 100755
(executable)
--- 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 &&