mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update DCO git hook example
This commit is contained in:
parent
42df36b6fc
commit
c3f2597546
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ the following to your ``.git/hooks/prepare-commit-msg`` script (needs
|
|||
# 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")
|
||||
SOB=$(git var GIT_AUTHOR_IDENT | sed -n "s/^\(.*>\).*$/Docker-DCO-1.1-Signed-off-by: \1 \(github: $GH_USER\)/p")
|
||||
grep -qs "^$SOB" "$1" || echo "\n$SOB" >> "$1"
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue