[ARVADOS-DEV] updated: 8c43556b9f93fed4c84e670084fd593d81df40e2
Git user
git at public.arvados.org
Thu May 19 17:42:03 UTC 2022
Summary of changes:
git/hooks/check-copyright-headers.rb | 5 +++++
git/hooks/coding-standards.rb | 5 +++++
git/hooks/enforce-dco-signoff.rb | 5 +++++
3 files changed, 15 insertions(+)
via 8c43556b9f93fed4c84e670084fd593d81df40e2 (commit)
from 90b507ea4dc647e90b50483ed3910206ae2649f8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 8c43556b9f93fed4c84e670084fd593d81df40e2
Author: Ward Vandewege <ward at curii.com>
Date: Thu May 19 13:41:29 2022 -0400
Add a convenient way to disable our git hooks via an environment
variable.
refs #18872
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>
diff --git a/git/hooks/check-copyright-headers.rb b/git/hooks/check-copyright-headers.rb
index 7d726f9..c2f0ebd 100755
--- a/git/hooks/check-copyright-headers.rb
+++ b/git/hooks/check-copyright-headers.rb
@@ -17,6 +17,11 @@ $oldrev = ARGV[1]
$newrev = ARGV[2]
$user = ENV['USER']
+if ENV.has_key?('GL_OPTION_SKIP_COPYRIGHT_HEADER_CHECK')
+ puts "Skipping copyright header check..."
+ exit 0
+end
+
puts "Enforcing copyright headers..."
puts "(#{$refname}) (#{$oldrev[0,6]}) (#{$newrev[0,6]})"
diff --git a/git/hooks/coding-standards.rb b/git/hooks/coding-standards.rb
index 62c210f..15a975c 100755
--- a/git/hooks/coding-standards.rb
+++ b/git/hooks/coding-standards.rb
@@ -17,6 +17,11 @@ $oldrev = ARGV[1]
$newrev = ARGV[2]
$user = ENV['USER']
+if ENV.has_key?('GL_OPTION_SKIP_CODING_STANDARDS_CHECK')
+ puts "Skipping coding standards check..."
+ exit 0
+end
+
def blacklist bl
if ($newrev[0,6] == '000000')
# A branch is being deleted. Do not check old commits for DCO signoff!
diff --git a/git/hooks/enforce-dco-signoff.rb b/git/hooks/enforce-dco-signoff.rb
index 4541fa0..98e47e8 100755
--- a/git/hooks/enforce-dco-signoff.rb
+++ b/git/hooks/enforce-dco-signoff.rb
@@ -17,6 +17,11 @@ $oldrev = ARGV[1]
$newrev = ARGV[2]
$user = ENV['USER']
+if ENV.has_key?('GL_OPTION_SKIP_DCO_CHECK')
+ puts "Skipping DCO check..."
+ exit 0
+end
+
puts "Enforcing DCO signoff..."
puts "(#{$refname}) (#{$oldrev[0,6]}) (#{$newrev[0,6]})"
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list