File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ static int add(int argc, const char **argv)
221
221
222
222
if (fetch_tags != TAGS_DEFAULT ) {
223
223
strbuf_reset (& buf );
224
- strbuf_addf (& buf , "remote.%s.tagopt " , name );
224
+ strbuf_addf (& buf , "remote.%s.tagOpt " , name );
225
225
git_config_set (buf .buf ,
226
226
fetch_tags == TAGS_SET ? "--tags" : "--no-tags" );
227
227
}
@@ -746,7 +746,7 @@ static int mv(int argc, const char **argv)
746
746
}
747
747
if (info -> push_remote_name && !strcmp (info -> push_remote_name , rename .old_name )) {
748
748
strbuf_reset (& buf );
749
- strbuf_addf (& buf , "branch.%s.pushremote " , item -> string );
749
+ strbuf_addf (& buf , "branch.%s.pushRemote " , item -> string );
750
750
git_config_set (buf .buf , rename .new_name );
751
751
}
752
752
}
Original file line number Diff line number Diff line change @@ -594,6 +594,7 @@ test_expect_success 'add --no-tags' '
594
594
cd add-no-tags &&
595
595
git init &&
596
596
git remote add -f --no-tags origin ../one &&
597
+ grep tagOpt .git/config &&
597
598
git tag -l some-tag >../test/output &&
598
599
git tag -l foobar-tag >../test/output &&
599
600
git config remote.origin.tagopt >>../test/output
@@ -756,6 +757,7 @@ test_expect_success 'rename a remote' '
756
757
cd four &&
757
758
git config branch.main.pushRemote origin &&
758
759
git remote rename origin upstream &&
760
+ grep "pushRemote" .git/config &&
759
761
test -z "$(git for-each-ref refs/remotes/origin)" &&
760
762
test "$(git symbolic-ref refs/remotes/upstream/HEAD)" = "refs/remotes/upstream/main" &&
761
763
test "$(git rev-parse upstream/main)" = "$(git rev-parse main)" &&
@@ -772,6 +774,7 @@ test_expect_success 'rename a remote renames repo remote.pushDefault' '
772
774
cd four.1 &&
773
775
git config remote.pushDefault origin &&
774
776
git remote rename origin upstream &&
777
+ grep pushDefault .git/config &&
775
778
test "$(git config --local remote.pushDefault)" = "upstream"
776
779
)
777
780
'
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ test_expect_success 'by default no tags will be kept updated' '
97
97
test_expect_success ' clone with --no-tags' '
98
98
(
99
99
cd dir_all_no_tags &&
100
+ grep tagOpt .git/config &&
100
101
git fetch &&
101
102
git for-each-ref refs/tags >../actual
102
103
) &&
You can’t perform that action at this time.
0 commit comments