From 95552e9492f1d3ad2422b6997575655216e8f552 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 17 Dec 2023 20:57:27 -0700 Subject: Rename the 'master' branch to 'main' --- make-release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-release b/make-release index fabfd02..2a6825b 100755 --- a/make-release +++ b/make-release @@ -15,7 +15,7 @@ set -e branch=$(git name-rev --name-only HEAD) -if [[ $branch == master ]]; then +if [[ $branch == main ]]; then gitdir="$(git rev-parse --git-dir)" workdir="${gitdir}/release" exec 8>"${workdir}.lock" @@ -26,7 +26,7 @@ if [[ $branch == master ]]; then git branch -D release.tmp &>/dev/null || true unset GIT_INDEX_FILE - git worktree add -b release.tmp "${gitdir}/release" master + git worktree add -b release.tmp "${gitdir}/release" main ( unset GIT_DIR GIT_WORK_TREE cd "$workdir" -- cgit v1.2.3-54-g00ecf