[kernel-team] 02/03: hooksetup.sh: Allow specifying which repos to apply to

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Fri Apr 8 11:07:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository kernel-team.

commit 0145984b998b4ab1c5ab3838bbf783b13f1295e9
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Fri Apr 8 12:06:10 2016 +0100

    hooksetup.sh: Allow specifying which repos to apply to
    
    Keep the old behaviour (apply to *.git) by default.
---
 scripts/hooksetup.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/hooksetup.sh b/scripts/hooksetup.sh
index 8b22a09..83379fb 100755
--- a/scripts/hooksetup.sh
+++ b/scripts/hooksetup.sh
@@ -32,7 +32,11 @@ mv -f kgb-client.conf.new kgb-client.conf
 
 umask $SAVE_UMASK
 
-for repo in *.git; do
+if [ $# = 0 ]; then
+	set -- *.git
+fi
+
+for repo in "$@"; do
 	# Leave these ones alone for now
 	case "$repo" in
 	initramfs-tools.git | klibc.git | linux-patched.git)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git



More information about the Kernel-svn-changes mailing list