mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7c55cbd4c9
and remove the fmt-check one we don't document tianon tells me they're called GitHub, not Github :) Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit) Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
7 lines
380 B
Bash
7 lines
380 B
Bash
#!/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")
|
|
grep -qs "^$SOB" "$1" || echo "\n$SOB" >> "$1"
|