summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2023-12-17 20:57:27 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2023-12-17 20:57:27 -0700
commit95552e9492f1d3ad2422b6997575655216e8f552 (patch)
tree7e29e369202f27c48c9dd677a11cefc077d18472
parentf675d9e62ace7b5a706ce2f499f6a18248a728b4 (diff)
Rename the 'master' branch to 'main'
-rwxr-xr-xmake-release4
1 files 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"