Re: [PATCH 00/28] Use main as default branch name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

>    Some test scripts may require setting init.defaultBranch='master'
>    at the top in the 'setup' part (I've shown how in my response to
>    t4013 patchset) if the body of the test relies too heavily on the
>    primary branch to be 'master'.

Ah, I realized we have much better mechanism already in the form of
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME environment.

So, my three wishes in this message now become

 - lose PREPARE_FOR_MAIN_BRANCH prerequisite as quickly as possible
   by doing the following two.

 - Use that mechanism to force 'main' in test scripts that now only
   can work with 'main', even before we change the fallback default
   from master to main in the production code, so that we won't lose
   test coverage.

 - The same for test scripts that are not converted yet to force use
   of 'master', so that we could change the fallback default from
   master to main in the production code even before converting
   these other scripts, so that we won't lose test coverage.

Thanks.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux