commit - 2424a69df90c2e63ec0640ae982b316106698760
commit + bf3ab20628c2f092c3ddea4787a49621986abd07
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 - f7e5a31ee56ac3317eb9169b6df6ccb743c92591
blob + 3d48fd3967ec94a3096d042e38e36f52a695c6a0
--- 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 - 1b6225239a7ffad05a3a5d7307cdf6927fb2cc5c
blob + 8e515695e66fe8502ee5328569beffeec45ae61c
--- 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 - bd9a3682082a9cea59639f31caa0666db9c823f0
blob + a62a12556a4f4fd09459de4290d9f368de04dcab
--- 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 - 84e63ab3e0ed94eb29e2fcdd5b9e529332c4f093
blob + b7220ca0b593cd415bbc281886ff62921be0acdc
--- 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 - 57b5461e1fbccf0b140efa562c91834f7f3db187
blob + 9210413ada76ebe36264f3770c28732157edfe99
--- 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 - a949436c0074202971cdc185337b3631820467f9
blob + 78efb6baf1ef1a675d0eda18bf4d4f2156f1814d
--- 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