From: Rob H. <for...@us...> - 2001-12-18 02:29:05
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv29283/bin Modified Files: sandweb.cgi Log Message: cool, so now VCS actions don't break if no filename is entered, instead they are performed on the current directory ( which is great for update, since you can't add a file that's not there :P ) please note that I've broken view and edit, i'll fix them when i get home. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.95 retrieving revision 1.96 diff -U2 -r1.95 -r1.96 --- sandweb.cgi 2001/12/18 02:18:53 1.95 +++ sandweb.cgi 2001/12/18 02:29:02 1.96 @@ -142,7 +142,14 @@ elsif ( param('action') eq 'vcsaction' ) { # called VCS action + my $filename; + if ( param('filename') ) { + $filename = param('filename'), + } + else { + $filename = '.'; + } vcsaction( cookie => $cookie, - filename => param('filename'), + filename => $filename, vcs_command => param('vcs_command'), location => param('location'), |