@@ -520,7 +520,7 @@ function e2e::sync_tag() {
520
520
# First sync
521
521
echo " $FUNCNAME 1" > " $REPO " /file
522
522
git -C " $REPO " commit -qam " $FUNCNAME 1"
523
- git -C " $REPO " tag -f " $TAG " > /dev/null
523
+ git -C " $REPO " tag -f " $TAG " -m " $TAG " > /dev/null
524
524
525
525
GIT_SYNC \
526
526
--wait=0.1 \
@@ -538,15 +538,15 @@ function e2e::sync_tag() {
538
538
# Add something and move the tag forward
539
539
echo " $FUNCNAME 2" > " $REPO " /file
540
540
git -C " $REPO " commit -qam " $FUNCNAME 2"
541
- git -C " $REPO " tag -f " $TAG " > /dev/null
541
+ git -C " $REPO " tag -f " $TAG " -m " $TAG " > /dev/null
542
542
sleep 3
543
543
assert_link_exists " $ROOT " /link
544
544
assert_file_exists " $ROOT " /link/file
545
545
assert_file_eq " $ROOT " /link/file " $FUNCNAME 2"
546
546
547
547
# Move the tag backward
548
548
git -C " $REPO " reset -q --hard HEAD^
549
- git -C " $REPO " tag -f " $TAG " > /dev/null
549
+ git -C " $REPO " tag -f " $TAG " -m " $TAG " > /dev/null
550
550
sleep 3
551
551
assert_link_exists " $ROOT " /link
552
552
assert_file_exists " $ROOT " /link/file
@@ -1560,7 +1560,7 @@ function e2e::submodule_sync_default() {
1560
1560
git -C " $NESTED_SUBMODULE " commit -aqm " init nested-submodule file"
1561
1561
1562
1562
# Add submodule
1563
- git -C " $REPO " submodule add -q file://$SUBMODULE
1563
+ git -C " $REPO " -c protocol.file.allow=always submodule add -q file://$SUBMODULE
1564
1564
git -C " $REPO " commit -aqm " add submodule"
1565
1565
1566
1566
GIT_SYNC \
@@ -1579,7 +1579,7 @@ function e2e::submodule_sync_default() {
1579
1579
# Make change in submodule repo
1580
1580
echo " $FUNCNAME 2" > " $SUBMODULE " /submodule
1581
1581
git -C " $SUBMODULE " commit -qam " $FUNCNAME 2"
1582
- git -C " $REPO " submodule update --recursive --remote > /dev/null 2>&1
1582
+ git -C " $REPO " -c protocol.file.allow=always submodule update --recursive --remote > /dev/null 2>&1
1583
1583
git -C " $REPO " commit -qam " $FUNCNAME 2"
1584
1584
sleep 3
1585
1585
assert_link_exists " $ROOT " /link
@@ -1589,7 +1589,7 @@ function e2e::submodule_sync_default() {
1589
1589
1590
1590
# Move backward in submodule repo
1591
1591
git -C " $SUBMODULE " reset -q --hard HEAD^
1592
- git -C " $REPO " submodule update --recursive --remote > /dev/null 2>&1
1592
+ git -C " $REPO " -c protocol.file.allow=always submodule update --recursive --remote > /dev/null 2>&1
1593
1593
git -C " $REPO " commit -qam " $FUNCNAME 3"
1594
1594
sleep 3
1595
1595
assert_link_exists " $ROOT " /link
@@ -1598,9 +1598,9 @@ function e2e::submodule_sync_default() {
1598
1598
assert_file_eq " $ROOT " /link/$SUBMODULE_REPO_NAME /submodule " submodule"
1599
1599
1600
1600
# Add nested submodule to submodule repo
1601
- git -C " $SUBMODULE " submodule add -q file://$NESTED_SUBMODULE
1601
+ git -C " $SUBMODULE " -c protocol.file.allow=always submodule add -q file://$NESTED_SUBMODULE
1602
1602
git -C " $SUBMODULE " commit -aqm " add nested submodule"
1603
- git -C " $REPO " submodule update --recursive --remote > /dev/null 2>&1
1603
+ git -C " $REPO " -c protocol.file.allow=always submodule update --recursive --remote > /dev/null 2>&1
1604
1604
git -C " $REPO " commit -qam " $FUNCNAME 4"
1605
1605
sleep 3
1606
1606
assert_link_exists " $ROOT " /link
@@ -1614,7 +1614,7 @@ function e2e::submodule_sync_default() {
1614
1614
rm -rf " $SUBMODULE " /.git/modules/$NESTED_SUBMODULE_REPO_NAME
1615
1615
git -C " $SUBMODULE " rm -qf $NESTED_SUBMODULE_REPO_NAME
1616
1616
git -C " $SUBMODULE " commit -aqm " delete nested submodule"
1617
- git -C " $REPO " submodule update --recursive --remote > /dev/null 2>&1
1617
+ git -C " $REPO " -c protocol.file.allow=always submodule update --recursive --remote > /dev/null 2>&1
1618
1618
git -C " $REPO " commit -qam " $FUNCNAME 5"
1619
1619
sleep 3
1620
1620
assert_link_exists " $ROOT " /link
@@ -1651,7 +1651,7 @@ function e2e::submodule_sync_depth() {
1651
1651
echo " $FUNCNAME 1" > " $SUBMODULE " /submodule
1652
1652
git -C " $SUBMODULE " add submodule
1653
1653
git -C " $SUBMODULE " commit -aqm " submodule $FUNCNAME 1"
1654
- git -C " $REPO " submodule add -q file://$SUBMODULE
1654
+ git -C " $REPO " -c protocol.file.allow=always submodule add -q file://$SUBMODULE
1655
1655
git -C " $REPO " config -f " $REPO " /.gitmodules submodule.$SUBMODULE_REPO_NAME .shallow true
1656
1656
git -C " $REPO " commit -qam " $FUNCNAME 1"
1657
1657
@@ -1679,7 +1679,7 @@ function e2e::submodule_sync_depth() {
1679
1679
# Move forward
1680
1680
echo " $FUNCNAME 2" > " $SUBMODULE " /submodule
1681
1681
git -C " $SUBMODULE " commit -aqm " submodule $FUNCNAME 2"
1682
- git -C " $REPO " submodule update --recursive --remote > /dev/null 2>&1
1682
+ git -C " $REPO " -c protocol.file.allow=always submodule update --recursive --remote > /dev/null 2>&1
1683
1683
git -C " $REPO " commit -qam " $FUNCNAME 2"
1684
1684
sleep 3
1685
1685
assert_link_exists " $ROOT " /link
@@ -1696,7 +1696,7 @@ function e2e::submodule_sync_depth() {
1696
1696
1697
1697
# Move backward
1698
1698
git -C " $SUBMODULE " reset -q --hard HEAD^
1699
- git -C " $REPO " submodule update --recursive --remote > /dev/null 2>&1
1699
+ git -C " $REPO " -c protocol.file.allow=always submodule update --recursive --remote > /dev/null 2>&1
1700
1700
git -C " $REPO " commit -qam " $FUNCNAME 3"
1701
1701
sleep 3
1702
1702
assert_link_exists " $ROOT " /link
@@ -1728,7 +1728,7 @@ function e2e::submodule_sync_off() {
1728
1728
git -C " $SUBMODULE " commit -aqm " init submodule file"
1729
1729
1730
1730
# Add submodule
1731
- git -C " $REPO " submodule add -q file://$SUBMODULE
1731
+ git -C " $REPO " -c protocol.file.allow=always submodule add -q file://$SUBMODULE
1732
1732
git -C " $REPO " commit -aqm " add submodule"
1733
1733
1734
1734
GIT_SYNC \
@@ -1767,11 +1767,11 @@ function e2e::submodule_sync_shallow() {
1767
1767
echo " nested-submodule" > " $NESTED_SUBMODULE " /nested-submodule
1768
1768
git -C " $NESTED_SUBMODULE " add nested-submodule
1769
1769
git -C " $NESTED_SUBMODULE " commit -aqm " init nested-submodule file"
1770
- git -C " $SUBMODULE " submodule add -q file://$NESTED_SUBMODULE
1770
+ git -C " $SUBMODULE " -c protocol.file.allow=always submodule add -q file://$NESTED_SUBMODULE
1771
1771
git -C " $SUBMODULE " commit -aqm " add nested submodule"
1772
1772
1773
1773
# Add submodule
1774
- git -C " $REPO " submodule add -q file://$SUBMODULE
1774
+ git -C " $REPO " -c protocol.file.allow=always submodule add -q file://$SUBMODULE
1775
1775
git -C " $REPO " commit -aqm " add submodule"
1776
1776
1777
1777
GIT_SYNC \
0 commit comments