commit - 24d916d21f287fd70d7ba70f077a8d84c3fdee7c
commit + f1aec6edf3cf139d631d740ffc7f9428c913685c
blob - 3b683b736207663881b76ad7dc8fe66657258335
blob + 41fa5ae45bcc23ddd3f6c20844b2b898a7901bbf
--- regress/cmdline/add.sh
+++ regress/cmdline/add.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
got checkout $testroot/repo $testroot/wt > /dev/null
blob - 91307342c12e2cd7aee08e6b177a89a2ea3f20e2
blob + 719bac3298df1e16197cba688737ead5ea2508cd
--- regress/cmdline/blame.sh
+++ regress/cmdline/blame.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
# Attempt a (nonsensical) blame of a submodule.
blob - 60e1f0fac6ad4a1710f1b237ccc1120775fab326
blob + 2e37e870ce0e06673c3f701e940ebdd2438b8c38
--- regress/cmdline/cat.sh
+++ regress/cmdline/cat.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
got cat -r $testroot/repo repo2 > $testroot/stdout \
local gmtoff=`date +%z`
(cd $testroot && git clone -q repo repo2 >/dev/null)
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
# 'got cat' shows the commit object which the submodule points to
blob - d5f017d307e68809b88a4ef9d579902a290129ef
blob + fa55d96f05c0ea98d084505524dc36353abc0120
--- regress/cmdline/checkout.sh
+++ regress/cmdline/checkout.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
local commit_id=`git_show_head $testroot/repo`
blob - dd2a0116f4d80b4d2507dd880190f3f355cc3c95
blob + ed1cc69eb0e97b9e276519a28388cd22e2ec82dc
--- regress/cmdline/cherrypick.sh
+++ regress/cmdline/cherrypick.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
got checkout $testroot/repo $testroot/wt > /dev/null
# Add the repo/repo2 submodule on newbranch
(cd $testroot/repo && git checkout -q -b newbranch)
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
local commit_id=`git_show_head $testroot/repo`
# Add the repo/repo2 submodule on newbranch
(cd $testroot/repo && git checkout -q -b newbranch)
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
local commit_id=`git_show_head $testroot/repo`
blob - 8cf81360cd1e5b35e87f5e5784c0b83a6aa7356b
blob + d2688f0de1e8d3514a41b90c5ac5e0af154f5cbe
--- regress/cmdline/commit.sh
+++ regress/cmdline/commit.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
got checkout $testroot/repo $testroot/wt > /dev/null
blob - be07e3211fa6b1491159fb5458fdf2f901864d68
blob + 51fe8c9d8176eeaa086aa653071670afd2db3eeb
--- regress/cmdline/diff.sh
+++ regress/cmdline/diff.sh
local testroot=`test_init diff_submodule_of_same_repo`
(cd $testroot && git clone -q repo repo2 >/dev/null)
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
epsilon_id=$(got tree -r $testroot/repo -i | grep 'epsilon/$' | \
blob - 3ffad0feb0127a8e3deb3766f2d7a9d1a383e35f
blob + 70b885ea4ca9f69d8efec236194dd51d5935741e
--- regress/cmdline/log.sh
+++ regress/cmdline/log.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
local head_commit=`git_show_head $testroot/repo`
blob - 75ae4d9639f4152935424d22a9cd67bb41ebacf1
blob + 5499391aa37047d50dfd1ab7501e0772654e8b4f
--- regress/cmdline/tree.sh
+++ regress/cmdline/tree.sh
local testroot=`test_init tree_submodule`
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
local submodule_id=$(got tree -r $testroot/repo -i | \
local testroot=`test_init tree_submodule_of_same_repo`
(cd $testroot && git clone -q repo repo2 >/dev/null)
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
# Currently fails with "bad object data"
blob - 9f1d03103e3ac9c1cb0474bc04a51cb2ef5e4651
blob + fce60c7f277d948ec481a744ed23e1b55ec128ed
--- regress/cmdline/update.sh
+++ regress/cmdline/update.sh
make_single_file_repo $testroot/repo2 foo
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
got checkout $testroot/repo $testroot/wt > /dev/null
echo "modified foo" > $testroot/repo2/foo
(cd $testroot/repo2 && git commit -q -a -m 'modified a submodule')
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
echo "A .gitmodules" > $testroot/stdout.expected
return 1
fi
- (cd $testroot/repo && git submodule -q add ../repo2)
+ (cd $testroot/repo && git -c protocol.file.allow=always \
+ submodule -q add ../repo2)
(cd $testroot/repo && git commit -q -m 'adding submodule')
# Modify the clashing file such that any modifications brought