OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a70ef2d
)
lib-submodule-update: teach test_submodule_content the -C <dir> flag
author
Stefan Beller
<sbeller@google.com>
Tue, 14 Mar 2017 21:46:28 +0000
(14:46 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 16 Mar 2017 01:15:53 +0000
(18:15 -0700)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-submodule-update.sh
patch
|
blob
|
history
diff --git
a/t/lib-submodule-update.sh
b/t/lib-submodule-update.sh
index
c0d6325
..
00128f2
100755
(executable)
--- a/
t/lib-submodule-update.sh
+++ b/
t/lib-submodule-update.sh
@@
-193,6
+193,11
@@
test_superproject_content () {
# Test that the given submodule at path "$1" contains the content according
# to the submodule commit recorded in the superproject's commit "$2"
test_submodule_content () {
+ if test x"$1" = "x-C"
+ then
+ cd "$2"
+ shift; shift;
+ fi
if test $# != 2
then
echo "test_submodule_content needs two arguments"