Explorar o código

git-pushb: also don't push main branch

raylu %!s(int64=4) %!d(string=hai) anos
pai
achega
ba211bcfef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      git-pushb

+ 1 - 1
git-pushb

@@ -3,7 +3,7 @@
 set -euo pipefail
 
 BRANCH=`git symbolic-ref --short HEAD`
-if [ $BRANCH == master ]; then
+if [[ $BRANCH == master || $BRANCH == main ]]; then
   echo "not pushing $BRANCH"
   exit 1
 fi