From 0f9a70649173e0ce53f71de53a2d07679667ab25 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 31 Oct 2024 22:46:42 +0100 Subject: [PATCH] makebranch: update default branch from master to main Update default branch from master to main to make the script usable again. Signed-off-by: Christian Marangi --- makebranch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makebranch.sh b/makebranch.sh index 4c305ab..0e39749 100755 --- a/makebranch.sh +++ b/makebranch.sh @@ -68,8 +68,8 @@ githash="$(git log --format=%h -1)" prev_branch="$(git symbolic-ref -q HEAD)" -if [ "$prev_branch" != "refs/heads/master" ]; then - echo "Expecting current branch name to be \"master\"," \ +if [ "$prev_branch" != "refs/heads/main" ]; then + echo "Expecting current branch name to be \"main\"," \ "but it is \"${prev_branch#refs/heads/}\" - aborting." exit 1 -- 2.30.2