X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5601-clone.sh;h=2335d8bc850b4b0010fcb9ac64a25d0c205e8a42;hb=2d430c713372fc21f9acf1d8b745e7f4fbbe336c;hp=44793f2eee0e0c14802ecedfe0637cc6855f51b6;hpb=a57ca9dd400c8459a3cd3d769bab317f57d1e9ac;p=git.git diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 44793f2ee..2335d8bc8 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -159,4 +159,19 @@ test_expect_success 'clone a void' ' test_cmp target-6/.git/config target-7/.git/config ' +test_expect_success 'clone respects global branch.autosetuprebase' ' + ( + HOME=$(pwd) && + export HOME && + test_config="$HOME/.gitconfig" && + unset GIT_CONFIG_NOGLOBAL && + git config -f "$test_config" branch.autosetuprebase remote && + rm -fr dst && + git clone src dst && + cd dst && + actual="z$(git config branch.master.rebase)" && + test ztrue = $actual + ) +' + test_done