[Fusionforge-commits] r8669 - trunk/gforge/deb-specific

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jan 14 15:52:28 CET 2010


Author: lolando
Date: 2010-01-14 15:52:28 +0100 (Thu, 14 Jan 2010)
New Revision: 8669

Modified:
   trunk/gforge/deb-specific/cvssh
Log:
Remove single quotes inserted by git clients in the parameters (those
are not passed to a shell anyway).


Modified: trunk/gforge/deb-specific/cvssh
===================================================================
--- trunk/gforge/deb-specific/cvssh	2010-01-14 11:08:20 UTC (rev 8668)
+++ trunk/gforge/deb-specific/cvssh	2010-01-14 14:52:28 UTC (rev 8669)
@@ -12,6 +12,7 @@
 
 @allowed_options = ('-c', '-e') ;
 @allowed_commands = ('cvs','scp','svnserve','bzr','git-upload-pack','git-receive-pack','git-upload-archive') ;
+ at commands_requiring_unquote = ('git-upload-pack','git-receive-pack','git-upload-archive') ;
 
 # Clean up our environment
 delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)};
@@ -37,6 +38,14 @@
     &reject ;
 }
 
+if (scalar (grep { $_ eq $cmd[0] } @commands_requiring_unquote) == 0) {
+    foreach my $i (1..$#cmd) {
+	if ($cmd[$i] =~ /^'(.*)'$/) {
+	    $cmd[$i] = $1;
+	}
+    }
+}
+
 exec @cmd ;
 
 sub reject {




More information about the Fusionforge-commits mailing list