projects
/
maintainer-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b03ba9f
)
makebranch: update default branch from master to main
master
author
Christian Marangi
<ansuelsmth@gmail.com>
Thu, 31 Oct 2024 21:46:42 +0000
(22:46 +0100)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/makebranch.sh
b/makebranch.sh
index 4c305ab03774ec93f8cd6a33972a6898ab43cc9e..0e3974985e0ffc99dbb14f5cd85672bc79049fc0 100755
(executable)
--- 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/ma
ster
" ]; then
- echo "Expecting current branch name to be \"ma
ster
\"," \
+if [ "$prev_branch" != "refs/heads/ma
in
" ]; then
+ echo "Expecting current branch name to be \"ma
in
\"," \
"but it is \"${prev_branch#refs/heads/}\" - aborting."
exit 1