makebranch: update default branch from master to main master
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 31 Oct 2024 21:46:42 +0000 (22:46 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 31 Oct 2024 21:46:42 +0000 (22:46 +0100)
Update default branch from master to main to make the script usable
again.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
makebranch.sh

index 4c305ab03774ec93f8cd6a33972a6898ab43cc9e..0e3974985e0ffc99dbb14f5cd85672bc79049fc0 100755 (executable)
@@ -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