diff options
Diffstat (limited to 'make-release')
-rwxr-xr-x | make-release | 4 |
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" |