mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 07:48:44 +00:00
move the contributing hook into hack, and use curl in the same way as the gofmt above
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)
This commit is contained in:
committed by
Sven Dowideit
parent
3cb5bc5ae5
commit
7c55cbd4c9
@@ -0,0 +1,7 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user