mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	Use repository specific work dirs (#1510)
With this change, work dirs are created in the directory of the repository and no longer in the global scm work dir directory. This is relevant due to two facts: 1. Repositories may contain confidential data and therefore reside in special directories (that may be mounted on special drives). It may be considered a breach when these directories are cloned or otherwise copied to global temporary drives. 2. Big repositories may overload global temp spaces. It may be easier to create special drives with more space for such big repositories.
This commit is contained in:
		| @@ -49,7 +49,7 @@ public class SimpleSvnWorkingCopyFactoryTest extends AbstractSvnCommandTestBase | ||||
|  | ||||
|   @Before | ||||
|   public void initWorkDirProvider() throws IOException { | ||||
|     workdirProvider = new WorkdirProvider(temporaryFolder.newFolder()); | ||||
|     workdirProvider = new WorkdirProvider(temporaryFolder.newFolder(), repositoryLocationResolver, false); | ||||
|   } | ||||
|  | ||||
|   @Test | ||||
|   | ||||
| @@ -57,7 +57,7 @@ public class SvnModifyCommandTest extends AbstractSvnCommandTestBase { | ||||
|   @Before | ||||
|   public void initSvnModifyCommand() { | ||||
|     context = createContext(); | ||||
|     workingCopyFactory = new SimpleSvnWorkingCopyFactory(new NoneCachingWorkingCopyPool(new WorkdirProvider(context.getDirectory()))); | ||||
|     workingCopyFactory = new SimpleSvnWorkingCopyFactory(new NoneCachingWorkingCopyPool(new WorkdirProvider(context.getDirectory(), repositoryLocationResolver, false))); | ||||
|     svnModifyCommand = new SvnModifyCommand(context, workingCopyFactory); | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user