test "z$head" = "z$branch"'
test_expect_success "fetch test followRemoteHEAD never" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD warn no change" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD warn create" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD warn detached" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD warn quiet" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD warn-if-not-branch branch is same" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD warn-if-not-branch branch is different" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success "fetch test followRemoteHEAD always" '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&
'
test_expect_success 'followRemoteHEAD does not kick in with refspecs' '
- test_when_finished "git config unset remote.origin.followRemoteHEAD" &&
+ test_when_finished "git -C \"$D/two\" config unset remote.origin.followRemoteHEAD" &&
(
cd "$D" &&
cd two &&