Skip to content

Commit

Permalink
Use https instead of scp to get commit hooks.
Browse files Browse the repository at this point in the history
Workaround compatibility problems between scp 9 and later versions, and
Gerrit scp protocol implementation.

This is the recommended solution from Gerrit: https://issues.gerritcodereview.com/issues/40014814

Fixes #18554
  • Loading branch information
pulkomandy committed Aug 17, 2023
1 parent 204a77d commit 717b450
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/guides/building/get-source-git.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ You may need to replace the <code class="varname">$USER</code> parameter in the
<h4>Build Tools:</h4>

```sh
git clone "ssh://$USER@git.haiku-os.org/buildtools" && scp -p $USER@git.haiku-os.org:hooks/commit-msg "buildtools/.git/hooks/"
git clone "ssh://$USER@git.haiku-os.org/buildtools" && curl -Lo "buildtools/.git/hooks/" https://git.haiku-os.org/tools/hooks/commit-msg
```

<h4>Haiku:</h4>

```sh
git clone "ssh://$USER@git.haiku-os.org/haiku" && scp -p $USER@git.haiku-os.org:hooks/commit-msg "haiku/.git/hooks/"
git clone "ssh://$USER@git.haiku-os.org/haiku" && curl -Lo "haiku/.git/hooks/" https://git.haiku-os.org/tools/hooks/commit-msg
```

<h4>Preparing your first patch</h4>
Expand All @@ -149,7 +149,7 @@ Before making a commit, install a Git hook that will automatically
for you:

```sh
scp -p $USER@git.haiku-os.org:hooks/commit-msg "haiku/.git/hooks/"
curl -Lo "haiku/.git/hooks/" https://git.haiku-os.org/tools/hooks/commit-msg
```

If a maintainer asks you to correct something later on, Gerrit will use that
Expand Down

0 comments on commit 717b450

Please sign in to comment.