[gatewiki-commits] SF.net SVN: gatewiki:[1430] trunk/cow/grails-app/services/SvnService.groovy

View: New views
1 Messages — Rating Filter:   Alert me  

[gatewiki-commits] SF.net SVN: gatewiki:[1430] trunk/cow/grails-app/services/SvnService.groovy

by markagreenwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 1430
          http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1430&view=rev
Author:   markagreenwood
Date:     2009-06-30 11:38:03 +0000 (Tue, 30 Jun 2009)

Log Message:
-----------
make sure the SVN update is done via a sandbox with authentication

Modified Paths:
--------------
    trunk/cow/grails-app/services/SvnService.groovy

Modified: trunk/cow/grails-app/services/SvnService.groovy
===================================================================
--- trunk/cow/grails-app/services/SvnService.groovy 2009-06-30 10:25:54 UTC (rev 1429)
+++ trunk/cow/grails-app/services/SvnService.groovy 2009-06-30 11:38:03 UTC (rev 1430)
@@ -23,6 +23,8 @@
   /** Config */
   static Map conf = CowUtils.config.gate.cow
 
+  def sandboxManager
+
   /**
    * <p>Do an SVN update on a wiki sandbox. The update is skipped if the
    *  repository is locked locally. If the update fails, an error is
@@ -35,7 +37,8 @@
 
     // Do the update
     log.info("Starting SVN update on wiki id ${wiki.id}...")
-    Sandbox sandbox = new Sandbox("","",new File("${conf.gate.cow.svnconfig}"))
+    //Sandbox sandbox = new Sandbox("","",new File("${conf.gate.cow.svnconfig}"))
+    Sandbox sandbox = sandboxManager.getSandbox(wiki.path)
     try {
       // skip the update if the wiki is locked
       def status = sandbox.doStatus(wikiPath, false)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits