mirror of
				https://github.com/mnauw/git-remote-hg.git
				synced 2025-10-31 08:35:48 +01:00 
			
		
		
		
	Create temporary directories dynamically
This avoids creating them in /tmp when another tmp dir was chosen.
This commit is contained in:
		
				
					committed by
					
						 Mark Nauwelaerts
						Mark Nauwelaerts
					
				
			
			
				
	
			
			
			
						parent
						
							da60201ae3
						
					
				
				
					commit
					7913920a97
				
			| @@ -20,11 +20,12 @@ | |||||||
| # | # | ||||||
|  |  | ||||||
| require 'fileutils' | require 'fileutils' | ||||||
|  | require 'tmpdir' | ||||||
|  |  | ||||||
| $tests = %w[main.t bidi.t hg-git.t] | $tests = %w[main.t bidi.t hg-git.t] | ||||||
| $workdir = "#{Dir.home}/.cache/git-remote-hg" | $workdir = "#{Dir.home}/.cache/git-remote-hg" | ||||||
| $builddir = "/tmp/git-remote-hg-build" | $builddir = Dir.mktmpdir("git-remote-hg-build-") | ||||||
| $testoutdir = "/tmp/git-remote-hg-tests" | $testoutdir = Dir.mktmpdir("git-remote-hg-tests-") | ||||||
|  |  | ||||||
| at_exit { | at_exit { | ||||||
|   FileUtils.remove_entry($builddir) |   FileUtils.remove_entry($builddir) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user