adjusting args in fetch_repo
This commit is contained in:
		
							parent
							
								
									a0f30934aa
								
							
						
					
					
						commit
						ad18c5c4b1
					
				| @ -579,13 +579,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy | |||||||
|     # Use "svn update" when the repository already exists locally. |     # Use "svn update" when the repository already exists locally. | ||||||
|     # This saves on bandwidth and will have a similar effect to verifying the |     # This saves on bandwidth and will have a similar effect to verifying the | ||||||
|     # cache as it will make any changes to get the right revision. |     # cache as it will make any changes to get the right revision. | ||||||
|     svncommand = target.directory? ? "update" : "checkout" |     args = if target.directory? | ||||||
|     args = ["svn", svncommand] |       ["svn", "update", svn_escape(target)] | ||||||
|     if svncommand == "checkout" |     else | ||||||
|       args << url |       ["svn", "checkout", url, target] | ||||||
|       args << target |  | ||||||
|     elsif svncommand == "update" |  | ||||||
|       args << svn_escape(target) |  | ||||||
|     end |     end | ||||||
|     if revision |     if revision | ||||||
|       ohai "Checking out #{@ref}" |       ohai "Checking out #{@ref}" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 feu
						feu