From 708605cdaccaa38c38b28af7df5280007f9d9604 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 26 Sep 2011 17:37:21 +0000 Subject: fix regexp to detect git commands (fix #2513) --- modules/restrictshell/templates/sv_membersh.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/restrictshell') diff --git a/modules/restrictshell/templates/sv_membersh.pl b/modules/restrictshell/templates/sv_membersh.pl index 002062de..155bc300 100644 --- a/modules/restrictshell/templates/sv_membersh.pl +++ b/modules/restrictshell/templates/sv_membersh.pl @@ -147,7 +147,7 @@ if ($#ARGV == 1 and $ARGV[0] eq "-c") { push( @args, @args_user ); exec($bin_svn, @args) or die("Failed to exec $bin_svn: $!"); - } elsif ($use_git and $ARGV[1] =~ m:git-.+:) { + } elsif ($use_git and $ARGV[1] =~ m:^git-.+:) { # Delegate filtering to git-shell exec($bin_git, @ARGV) or die("Failed to exec $bin_git: $!"); -- cgit v1.2.1