2014-01-10 02:56:05 +00:00
|
|
|
#!/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.1-Signed-off-by: \1 \(github: $GH_USER\)/p")
|
2014-03-04 00:32:39 +00:00
|
|
|
grep -qs "^$SOB" "$1" || {
|
|
|
|
echo
|
|
|
|
echo "$SOB"
|
|
|
|
} >> "$1"
|