projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5450a33
)
HACK work around missing index entry for existing empty submodules
wtk/remove-submodule-init
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>
Mon, 3 Dec 2012 14:46:28 +0000
(09:46 -0500)
t/t7400-submodule-basic.sh
patch
|
blob
|
history
diff --git
a/t/t7400-submodule-basic.sh
b/t/t7400-submodule-basic.sh
index 97be72faca482803e6ee8d5ccf42b0106a4d0073..a6b22018f81bb6d494a073f4ab32481cf0ec24e9 100755
(executable)
--- 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 &&