Skip to content

Commit 2b44950

Browse files
committed
The primary branch was renamed to main
1 parent f137436 commit 2b44950

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches: [ '*' ]
77
pull_request:
8-
branches: [ master ]
8+
branches: [ main ]
99

1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:

doc/git-hub.swim

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ interactions from the command line. They are installed by default.
258258

259259
- `upgrade`
260260
Upgrade the `git-hub` installation to the latest version. Note: you need to
261-
be running 'git-hub' from the source repo, and be on the master branch for
261+
be running 'git-hub' from the source repo, and be on the main branch for
262262
this to work.
263263

264264
- `user [<user>]`
@@ -884,7 +884,7 @@ Do everything from the command line:
884884
$ echo 'The new foo' > README
885885
$ git add README
886886
$ git commit -m 'First commit'
887-
$ git push origin master
887+
$ git push origin main
888888
$ git hub repo-edit \
889889
description 'The new foo' \
890890
homepage http://example.com

lib/git-hub.d/git-hub-upgrade

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
command:upgrade() {
44
local path="$0"
55
local branch="$(git rev-parse --abbrev-ref HEAD)"
6-
if [[ $branch != master ]]; then
7-
error "git-hub repo is not on the 'master' branch"
6+
if [[ $branch != main ]]; then
7+
error "git-hub repo is not on the 'main' branch"
88
fi
99
if [[ $path =~ ^/ && $path =~ ^(.*/git-hub)/lib/git-hub$ ]]; then
1010
(

lib/git-hub.d/help-functions.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ help:upgrade() {
10371037
Usage: git hub upgrade
10381038
10391039
Upgrade the `git-hub` installation to the latest version. Note: you need to
1040-
be running 'git-hub' from the source repo, and be on the master branch for
1040+
be running 'git-hub' from the source repo, and be on the main branch for
10411041
this to work.
10421042
...
10431043
}

0 commit comments

Comments
 (0)