* Automatically convert direct mode repositories to v7 with adjusted unlocked branches and set annex.thin. * init: When run on a crippled filesystem with --version=5, will error out, since version 7 is needed for adjusted unlocked branch. * direct: This command always errors out as direct mode is no longer supported. * indirect: This command has become a deprecated noop. * proxy: This command is deprecated because it was only needed in direct mode. (But it continues to work.) Also removed mentions of direct mode throughough the documentation. I have not removed all the direct mode code yet.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			556 B
			
		
	
	
	
		
			Haskell
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			556 B
			
		
	
	
	
		
			Haskell
		
	
	
	
	
	
{- git-annex command
 | 
						|
 -
 | 
						|
 - Copyright 2014 Joey Hess <id@joeyh.name>
 | 
						|
 -
 | 
						|
 - Licensed under the GNU AGPL version 3 or higher.
 | 
						|
 -}
 | 
						|
 | 
						|
module Command.Proxy where
 | 
						|
 | 
						|
import Command
 | 
						|
 | 
						|
cmd :: Command
 | 
						|
cmd = notBareRepo $
 | 
						|
	command "proxy" SectionPlumbing 
 | 
						|
		"safely bypass direct mode guard (deprecated)"
 | 
						|
		("-- git command") (withParams seek)
 | 
						|
 | 
						|
seek :: CmdParams -> CommandSeek
 | 
						|
seek = withWords (commandAction . start)
 | 
						|
 | 
						|
start :: [String] -> CommandStart
 | 
						|
start [] = giveup "Did not specify command to run."
 | 
						|
start (c:ps) = liftIO $ exitWith =<< safeSystem c (map Param ps)
 |