*: rename master branch to main
authorTimothée Ravier <travier@redhat.com>
Fri, 7 May 2021 14:38:16 +0000 (16:38 +0200)
committerTimothée Ravier <travier@redhat.com>
Fri, 7 May 2021 14:55:03 +0000 (16:55 +0200)
14 files changed:
.cci.jenkinsfile
.github/ISSUE_TEMPLATE/release-checklist.md
.github/workflows/release.yml
.github/workflows/tests.yml
.packit.yaml
README.md
ci/ci-commitmessage-submodules.sh
docs/CONTRIBUTING.md
docs/_config.yml
docs/adapting-existing.md
docs/contributing-tutorial.md
docs/index.md
docs/repo.md
docs/repository-management.md

index 33bc115e880e09fe7465f425236f87410607bc53..12d9988a117c88ef0ed7549efba644ac72ecb381 100644 (file)
@@ -57,9 +57,9 @@ codestyle: {
   buildPod(runAsUser:0) {
       checkout scm
       shwrap("""
-        # Jenkins by default only fetches the branch it's testing. Explicitly fetch master
+        # Jenkins by default only fetches the branch it's testing. Explicitly fetch main
         # for ci-commitmessage-submodules.sh
-        git fetch origin +refs/heads/master:refs/remotes/origin/master
+        git fetch origin +refs/heads/main:refs/remotes/origin/main
         ci/ci-commitmessage-submodules.sh
       """)
   }
index 3b02847fc6587a8be9a08f32d06dd74888e72cce..ff290222207b87648c0297d3163c2381beb0e791 100644 (file)
@@ -18,7 +18,7 @@ This guide requires:
 - Prepare local environment:
   - [ ]  `git remote get-url --push origin`
   - [ ]  validate that the output above points to `git@github.com:ostreedev/ostree.git`
-  - [ ] `git checkout master && git pull`
+  - [ ] `git checkout main && git pull`
   - [ ] `git clean -fd`
   - [ ] `RELEASE_VER=yyyy.n` (matching `package_version` in `configure.ac`)
   - [ ] `git checkout -b release-${RELEASE_VER}`
@@ -56,7 +56,7 @@ This guide requires:
 
 - Clean up:
   - [ ] `git clean -fd`
-  - [ ] `git checkout master`
+  - [ ] `git checkout main`
   - [ ] `git pull`
   - [ ] `git push origin :release-${RELEASE_VER}`
   - [ ] `git branch -d release-${RELEASE_VER}`
index 77a5bda3054cfac237d949ede3f20f1e61bc56d8..399b6637186d9549b075aa896dddad8bcad4d0e2 100644 (file)
@@ -3,7 +3,7 @@ name: Release
 
 on:
   pull_request:
-    branches: [master]
+    branches: [main]
     paths:
       - 'configure.ac'
 
index 6a867d2c6f0c12b5251a313b371c51b38dfcdc31..70233b8ef79de1c7b8225efad373146d3e015131 100644 (file)
@@ -2,9 +2,9 @@
 name: Rust
 on:
   push:
-    branches: [master]
+    branches: [main]
   pull_request:
-    branches: [master]
+    branches: [main]
 
 env:
   CARGO_TERM_COLOR: always
index 1f2e8128e3bb8bf7673ae2f14d4ea9b66625e207..857d6ec4b047f37b848215e42f24dd476c8e369a 100644 (file)
@@ -3,7 +3,7 @@ jobs:
     - job: production_build
       trigger: commit
       metadata:
-          branch: master
+          branch: main
           targets: f34-coreos-continuous
 specfile_path: ostree.spec
 actions:
index fcde7015c5c7d74b5e89bfd37f4fadce5a534463..7074dbbc4e0b7728324a2fc8b87c400d3df61f53 100644 (file)
--- a/README.md
+++ b/README.md
@@ -130,7 +130,7 @@ However, in order to build from a git clone, you must update the
 submodules.  If you're packaging OSTree and want a tarball, I
 recommend using a "recursive git archive" script.  There are several
 available online;
-[this code](https://github.com/ostreedev/ostree/blob/master/packaging/Makefile.dist-packaging#L11)
+[this code](https://github.com/ostreedev/ostree/blob/main/packaging/Makefile.dist-packaging#L11)
 in OSTree is an example.
 
 Once you have a git clone or recursive archive, building is the
@@ -157,7 +157,7 @@ See [Contributing](CONTRIBUTING.md).
 ## Licensing
 
 The licensing for the *code* of libostree can be canonically found in the individual files;
-and the overall status in the [COPYING](https://github.com/ostreedev/ostree/blob/master/COPYING)
+and the overall status in the [COPYING](https://github.com/ostreedev/ostree/blob/main/COPYING)
 file in the source.  Currently, that's LGPLv2+.  This also covers the man pages and API docs.
 
 The license for the manual documentation in the `doc/` directory is:
index edc0d780d0e5fefde382f1a5032bd0fd9977143d..ebc1802266cf40adc268e3e8fe100380daad4882 100755 (executable)
@@ -40,7 +40,7 @@ gitdir=$(realpath $(pwd))
 # require a newer git, we could use `git worktree`.
 cp -a ${gitdir} ${tmpd}/workdir
 cd ${tmpd}/workdir
-git log --pretty=oneline origin/master..$HEAD | while read logline; do
+git log --pretty=oneline origin/main..$HEAD | while read logline; do
     commit=$(echo ${logline} | cut -f 1 -d ' ')
     # For merge commits, just check that they're empty (i.e. no conflict
     # resolution was needed). Otherwise, let's just error out. Conflicts should
index 03797a25d22d7ce0546ab17c99884d6bd159f539..f7d7a5caa148f480fc91e82195ee42bc22181de7 100644 (file)
@@ -72,7 +72,7 @@ For more information see [How to Write a Git Commit Message](https://chris.beams
 
 **Editing a Committed Message:**
 
-To edit the message from the most recent commit run `git commit --amend`. To change older commits on the branch use `git rebase -i`. For a successful rebase have the branch track `upstream master`. Once the changes have been made and saved, run `git push --force origin <branch-name>`.
+To edit the message from the most recent commit run `git commit --amend`. To change older commits on the branch use `git rebase -i`. For a successful rebase have the branch track `upstream main`. Once the changes have been made and saved, run `git push --force origin <branch-name>`.
 
 ## Running the test suite
 
index e28f65060081f09a46c73a43f76107b62cf2a876..836b22d8428c685b4d360cca2907d31d149793b5 100644 (file)
@@ -28,7 +28,7 @@ last_edit_time_format: "%b %e %Y at %I:%M %p"
 gh_edit_link: true
 gh_edit_link_text: "Edit this page on GitHub"
 gh_edit_repository: "https://github.com/ostreedev/ostree"
-gh_edit_branch: "master"
+gh_edit_branch: "main"
 gh_edit_source: docs
 gh_edit_view_mode: "tree"
 
index cc4b76d2be1049eb77cf3c22a7c7009f3b6e35e0..b9a157a4c3f409e7a3a62c36e6bc5ac7be0c99df 100644 (file)
@@ -92,7 +92,7 @@ After these steps, systemd switches root.
 If you are not using dracut or systemd, using OSTree should still be
 possible, but you will have to write the integration code. See the
 existing sources in
-[src/switchroot](https://github.com/ostreedev/ostree/tree/master/src/switchroot)
+[src/switchroot](https://github.com/ostreedev/ostree/tree/main/src/switchroot)
 as a reference.
 
 Patches to support other initramfs technologies and init systems, if
index bb656f0e1f78bfa0ebcb530271a9c54240448597..a9e8d670cae3c8f12365adc32853156f9e7208b2 100644 (file)
@@ -17,14 +17,14 @@ Fork https://github.com/ostreedev/ostree, then run the following commands.
 ```bash
 $ git clone https://github.com/<username>/ostree && cd ostree
 $ git remote add upstream https://github.com/ostreedev/ostree
-$ git checkout master
-$ git fetch upstream && git branch --set-upstream-to=upstream/master master
+$ git checkout main
+$ git fetch upstream && git branch --set-upstream-to=upstream/main main
 ```
-Make a branch from master for your patch.
+Make a branch from main for your patch.
 
 ```bash
 $ git checkout -b <name-of-branch>
-$ git branch --set-upstream-to=upstream/master <name-of-branch>
+$ git branch --set-upstream-to=upstream/main <name-of-branch>
 ```
 
 ## Building OSTree
@@ -55,7 +55,7 @@ apt-get install build-essential && \
 apt-get build-dep ostree
 ```
 
-[build.sh](https://github.com/ostreedev/ostree/blob/master/ci/build.sh) will have a list of packages needed to build ostree.
+[build.sh](https://github.com/ostreedev/ostree/blob/main/ci/build.sh) will have a list of packages needed to build ostree.
 
 ### OSTree Build Commands
 
@@ -120,7 +120,7 @@ RUN dnf update -y && \
     dnf -y builddep ostree  && \
     dnf clean all
 
-# clone ostree and update master branch
+# clone ostree and update main branch
 COPY ostree-git.sh /
 RUN ../ostree-git.sh
 
@@ -142,7 +142,7 @@ Save the following bash scripts in the same directory as the Dockerfile. Then ch
 #!/bin/bash
 
 # ostree-git.sh
-# Clone ostree and update master branch
+# Clone ostree and update main branch
 
 set -euo pipefail
 
@@ -153,10 +153,10 @@ USERNAME=""
 git clone https://github.com/$USERNAME/ostree.git
 cd ostree
 
-# Add upstream as remote and update master branch
-git checkout master  
+# Add upstream as remote and update main branch
+git checkout main  
 git remote add upstream https://github.com/ostreedev/ostree.git
-git pull --rebase upstream master
+git pull --rebase upstream main
 ```
 
 ```bash
@@ -407,13 +407,13 @@ Tests for OSTree are done by shell scripting, by running OSTree commands and exa
 
 After you have committed your changes and tested, you are ready to submit your patch!
 
-You should make sure your commits are placed on top of the latest changes from `upstream/master`:
+You should make sure your commits are placed on top of the latest changes from `upstream/main`:
 
 ```bash
-$ git pull --rebase upstream master
+$ git pull --rebase upstream main
 ```
 
-To submit your patch, open a pull request from your forked repository. Most often, you'll be merging into `ostree:master` from `<username>:<branch name>`.
+To submit your patch, open a pull request from your forked repository. Most often, you'll be merging into `ostree:main` from `<username>:<branch name>`.
 
 If some of your changes are complete and you would like feedback, you may also open a pull request that has WIP (Work In Progress) in the title.
 
@@ -423,13 +423,13 @@ See [CONTRIBUTING.md](CONTRIBUTING.md#submitting-patches) for information on squ
 
 ### Returning Workflow
 
-When returning to work on a patch, it is recommended to update your fork with the latest changes in the upstream master branch.
+When returning to work on a patch, it is recommended to update your fork with the latest changes in the upstream main branch.
 
 If creating a new branch:
 
 ```bash
-$ git checkout master
-$ git pull upstream master
+$ git checkout main
+$ git pull upstream main
 $ git checkout -b <name-of-patch>
 ```
 
@@ -437,5 +437,5 @@ If continuing on a branch already created:
 
 ```bash
 $ git checkout <name-of-patch>
-$ git pull --rebase upstream master
+$ git pull --rebase upstream main
 ```
index 57e9439f6320f047e24e3e061663a4238e75bc73..d5235ed607798b62ed737d1c821a77a308aa33de 100644 (file)
@@ -127,7 +127,7 @@ However, in order to build from a git clone, you must update the
 submodules.  If you're packaging OSTree and want a tarball, I
 recommend using a "recursive git archive" script.  There are several
 available online;
-[this code](https://github.com/ostreedev/ostree/blob/master/packaging/Makefile.dist-packaging#L11)
+[this code](https://github.com/ostreedev/ostree/blob/main/packaging/Makefile.dist-packaging#L11)
 in OSTree is an example.
 
 Once you have a git clone or recursive archive, building is the
@@ -148,7 +148,7 @@ See [Contributing](docs/CONTRIBUTING.md).
 ## Licensing
 
 The licensing for the *code* of libostree can be canonically found in the individual files;
-and the overall status in the [COPYING](https://github.com/ostreedev/ostree/blob/master/COPYING)
+and the overall status in the [COPYING](https://github.com/ostreedev/ostree/blob/main/COPYING)
 file in the source.  Currently, that's LGPLv2+.  This also covers the man pages and API docs.
 
 The license for the manual documentation in the `doc/` directory is:
index 9b254b12921a3c4deb817b8bc26b3263937f8a96..0269934e0ed2e6f7ca8524a2006a4b60b8156b48 100644 (file)
@@ -121,7 +121,7 @@ Like git, OSTree uses the terminology "references" (abbreviated
 commits.  See the
 [Git Documentation](https://git-scm.com/book/en/v2/Git-Internals-Git-References)
 for information on how git uses them.  Unlike git though, it doesn't
-usually make sense to have a "master" branch.  There is a convention
+usually make sense to have a "main" branch.  There is a convention
 for references in OSTree that looks like this:
 `exampleos/buildmaster/x86_64-runtime` and
 `exampleos/buildmaster/x86_64-devel-debug`.  These two refs point to
index ace150ad8bebedc76eeea304bae8314a097f80a0..7dda781dc9ff6599d54b40faa23f2e0fd6c7c2f5 100644 (file)
@@ -117,7 +117,7 @@ log links to build logs, etc.), but we're reusing the *content* from the `buildm
 commit `aec070645fe53` that passed the smoketests.
 
 For a more sophisticated implementation of this model, see the
-[do-release-tags](https://github.com/ostreedev/ostree-releng-scripts/blob/master/do-release-tags)
+[do-release-tags](https://github.com/ostreedev/ostree-releng-scripts/blob/main/do-release-tags)
 script, which includes support for things like propagating version
 numbers across commit promotion.