forked from RamenDR/ramen
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #356 from red-hat-storage/sync_ds--main
Syncing latest changes from main for ramen
- Loading branch information
Showing
7 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,24 +33,14 @@ SPDX-License-Identifier: Apache-2.0 | |
git remote add upstream https://github.com/RamenDR/ramen.git | ||
``` | ||
|
||
1. Set up a commit-msg hook to sign off your commits | ||
1. Add the commit-msg hook to sign off your commits | ||
|
||
*Ramen* requires a `Signed-off-by: My Name <[email protected]>` | ||
footer in the commit message. To add it automatically to all commits, | ||
add this hook: | ||
|
||
```sh | ||
$ cat .git/hooks/commit-msg | ||
#!/bin/sh | ||
# Add Signed-off-by trailer. | ||
sob=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') | ||
git interpret-trailers --in-place --trailer "$sob" "$1" | ||
``` | ||
|
||
And make the hook executable: | ||
|
||
```sh | ||
chmod +x .git/hooks/commit-msg | ||
cp hack/commit-msg .git/hooks/ | ||
``` | ||
|
||
## Setting up the environment for development and testing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
# Add Signed-off-by trailer. | ||
sob=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') | ||
git interpret-trailers --in-place --trailer "$sob" "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters