-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
give more specific advice on setting up signing
Docker-DCO-1.0-Signed-off-by: Sven Dowideit <[email protected]> (github: SvenDowideit)
- Loading branch information
1 parent
b3addb5
commit 0eb5f23
Showing
1 changed file
with
16 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -129,12 +129,27 @@ d. I understand and agree that this Project and the contribution are publicly kn | |
e. I hereby grant to the Project, Docker, Inc and its successors; and recipients of software distributed by the Project a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, modify, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this contribution and such modifications and derivative works consistent with this Project, the open source license indicated in the previous work or other appropriate open source license specified by the Project and approved by the Open Source Initiative(OSI) at http://www.opensource.org. | ||
``` | ||
|
||
then you just add a line saying | ||
then you just add a line to every git commit message: | ||
|
||
Docker-DCO-1.0-Signed-off-by: Joe Smith <[email protected]> (github: github_handle) | ||
|
||
using your real name (sorry, no pseudonyms or anonymous contributions.) | ||
|
||
One way to automate this, is customise your get ``commit.template`` by adding | ||
the following to your ``.git/hooks/prepare-commit-msg`` script (needs | ||
``chmod 755 .git/hooks/prepare-commit-msg`` ) in the docker checkout: | ||
|
||
``` | ||
#!/bin/sh | ||
# Auto sign all commits to allow them to be used by the Docker project. | ||
# see https://github.com/dotcloud/docker/blob/master/CONTRIBUTING.md#sign-your-work | ||
# | ||
GH_USER=$(git config --get github.user) | ||
SOB=$(git var GIT_AUTHOR_IDENT | sed -n "s/^\(.*>\).*$/Docker-DCO-1.0-Signed-off-by: \1 \(github: $GH_USER\)/p") | ||
grep -qs "^$SOB" "$1" || echo "\n$SOB" >> "$1" | ||
``` | ||
|
||
If you have any questions, please refer to the FAQ in the [docs](http://docs.docker.io) | ||
|
||
|
||
|