diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-12-07 15:19:40 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-08 14:44:02 -0800 |
commit | 469f17d09789e781bee22edf6233f234a2c5afd3 (patch) | |
tree | 63441a47780c2a008261519c0b684d3731a135c6 /compat/mingw.c | |
parent | Tenth batch (diff) | |
download | tgif-469f17d09789e781bee22edf6233f234a2c5afd3.tar.xz |
t7064: avoid relying on a specific default branch name
To allow us to consider a change in the default behavior of `git init`
where it uses a more inclusive name for the initial branch, we must
first teach the test suite not to rely on a specific default branch
name. In this patch, we teach t7064 that trick.
To that end, we set a specific name for the initial branch. Ideally, we
would simply start out by calling `git branch -M initial-branch`, but
there is a bug in `git branch -M` that does not allow renaming branches
unless they already have commits. This will be fixed in the
`js/init-defaultbranch-advice` topic, and until that time, we use the
equivalent (but less intuitive) `git checkout -f --orphan`.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.c')
0 files changed, 0 insertions, 0 deletions