Skip to content

Commit 9d9bfa0

Browse files
authored
Update name of main branch in CI and docs (isce-framework#161)
The name of the main branch is now "main". Documentation and CI scripts are updated accordingly. Co-authored-by: Ryan Burns <[email protected]>
1 parent f09213e commit 9d9bfa0

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ workflows:
247247
- build:
248248
filters:
249249
branches:
250-
only: master
250+
only: main
251251
- deploy:
252252
requires:
253253
- build
254254
filters:
255255
branches:
256-
only: master
256+
only: main
257257
build-deploy-release:
258258
jobs:
259259
- build-release:
@@ -277,15 +277,15 @@ workflows:
277277
filters:
278278
branches:
279279
only:
280-
- master
280+
- main
281281
jobs:
282282
- build-periodically:
283283
filters:
284284
branches:
285-
only: master
285+
only: main
286286
- deploy:
287287
requires:
288288
- build-periodically
289289
filters:
290290
branches:
291-
only: master
291+
only: main

CONTRIBUTING.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ cd isce2
4545
git remote add my_user_name https://github.com/my_user_name/isce2.git
4646
```
4747

48-
### Updating your local master against upstream master
48+
### Updating your local main branch against upstream
4949

5050
```
51-
git checkout master
51+
git checkout main
5252
git fetch origin
53-
# Be careful: this will loose all local changes you might have done now
54-
git reset --hard origin/master
53+
# Be careful: this will lose all local changes you might have done now
54+
git reset --hard origin/main
5555
```
5656

5757
### Working with a feature branch
5858

5959
```
60-
git checkout master
60+
git checkout main
6161
(potentially update your local reference against upstream, as described above)
6262
git checkout -b my_new_feature_branch
6363
@@ -67,22 +67,22 @@ git add my_modifid_message
6767
git rm old_file
6868
git commit -a
6969
70-
# you may need to resynchronize against master if you need some bugfix
71-
# or new capability that has been added to master since you created your
70+
# you may need to resynchronize against main if you need some bugfix
71+
# or new capability that has been added to main since you created your
7272
# branch
7373
git fetch origin
74-
git rebase origin/master
74+
git rebase origin/main
7575
7676
# At end of your work, make sure history is reasonable by folding non
7777
# significant commits into a consistent set
78-
git rebase -i master (use 'fixup' for example to merge several commits together,
78+
git rebase -i main (use 'fixup' for example to merge several commits together,
7979
and 'reword' to modify commit messages)
8080
8181
# or alternatively, in case there is a big number of commits and marking
8282
# all them as 'fixup' is tedious
8383
git fetch origin
84-
git rebase origin/master
85-
git reset --soft origin/master
84+
git rebase origin/main
85+
git reset --soft origin/main
8686
git commit -a -m "Put here the synthetic commit message"
8787
8888
# push your branch
@@ -93,7 +93,7 @@ From GitHub UI, issue a pull request
9393
If the pull request discussion results in changes,
9494
commit locally and push. To get a reasonable history, you may need to
9595
```
96-
git rebase -i master
96+
git rebase -i main
9797
```
9898
, in which case you will have to force-push your branch with
9999
```

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RUN set -ex \
7171
&& cd /tmp \
7272
&& mkdir -p /tmp/rpm-build/opt \
7373
&& mv $ISCE_INSTALL_ROOT /tmp/rpm-build/opt \
74-
&& curl -s https://api.github.com/repos/$ISCE_ORG/isce2/git/refs/heads/master \
74+
&& curl -s https://api.github.com/repos/$ISCE_ORG/isce2/git/refs/heads/main \
7575
> /tmp/rpm-build/opt/isce2/version.json \
7676
&& hash=$(cat /tmp/rpm-build/opt/isce2/version.json | jq -r .object.sha) \
7777
&& short_hash=$(echo $hash | cut -c1-5) \

docker/Dockerfile.cuda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ RUN set -ex \
7272
&& rm -rf /opt/isce2/src \
7373
&& mkdir -p /tmp/rpm-build/opt \
7474
&& mv $ISCE_INSTALL_ROOT /tmp/rpm-build/opt \
75-
&& curl -s https://api.github.com/repos/$ISCE_ORG/isce2/git/refs/heads/master \
75+
&& curl -s https://api.github.com/repos/$ISCE_ORG/isce2/git/refs/heads/main \
7676
> /tmp/rpm-build/opt/isce2/version.json \
7777
&& hash=$(cat /tmp/rpm-build/opt/isce2/version.json | jq -r .object.sha) \
7878
&& short_hash=$(echo $hash | cut -c1-5) \

0 commit comments

Comments
 (0)