]> git.ipfire.org Git - thirdparty/git.git/commit
t1415: avoid using `main` as ref name
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 8 Oct 2020 10:13:46 +0000 (10:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Oct 2020 17:40:16 +0000 (10:40 -0700)
commita15ad5d1bc23f3a6842360df5ee840b1dc3e4888
tree8f49dac72125bd0a36b23f576535e42bc8175c9a
parentd98273ba77e1ab9ec755576bc86c716a97bf59d7
t1415: avoid using `main` as ref name

In preparation for a patch series that will change the fall-back for
`init.defaultBranch` to `main`, let's not use `main` as ref name in this
test script.

Otherwise, the `git for-each-ref ... | grep main` which wants to catch
those refs would also unexpectedly catch `refs/heads/main`.

Since the refs in question are worktree-local ones (i.e. each worktree
has their own, just like `HEAD`), and since the test case already uses a
secondary worktree called "second", let's use the name "first" for those
refs instead.

While at it, adjust the test titles that talk about a "repo" when they
meant a "worktree" instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1415-worktree-refs.sh