diff options
| author | Nicolas Vigier <boklm@mageia.org> | 2011-09-26 17:37:21 +0000 |
|---|---|---|
| committer | Nicolas Vigier <boklm@mageia.org> | 2011-09-26 17:37:21 +0000 |
| commit | 708605cdaccaa38c38b28af7df5280007f9d9604 (patch) | |
| tree | c5f65a82eb6acbfbd9c7fb289e05673717dc880a /modules/restrictshell/templates | |
| parent | db8106ab7b88f563131d0d02ac2a8f53be898c2d (diff) | |
| download | puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar.gz puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar.bz2 puppet-708605cdaccaa38c38b28af7df5280007f9d9604.tar.xz puppet-708605cdaccaa38c38b28af7df5280007f9d9604.zip | |
fix regexp to detect git commands (fix #2513)
Diffstat (limited to 'modules/restrictshell/templates')
| -rw-r--r-- | modules/restrictshell/templates/sv_membersh.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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: $!"); |
