Update DCO git hook example

This commit is contained in:
Guillaume J. Charmes 2014-01-09 09:02:56 -08:00
parent 42df36b6fc
commit c3f2597546
No known key found for this signature in database
GPG Key ID: B33E4642CB6E3FF3
1 changed files with 1 additions and 1 deletions

View File

@ -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"
```