prevent using config when does not exist to fix #152
This commit is contained in:
		
							parent
							
								
									84e0664d31
								
							
						
					
					
						commit
						dc193e7b4a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -87,10 +87,10 @@ class Git(BaseProject):
 | 
			
		|||
 | 
			
		||||
        disabled = self._configs.get('submodules_disabled')
 | 
			
		||||
 | 
			
		||||
        if not disabled or disabled.strip().lower() == 'false':
 | 
			
		||||
            return True
 | 
			
		||||
        if disabled.strip().lower() == 'true':
 | 
			
		||||
            return False
 | 
			
		||||
        if disabled.strip().lower() == 'false':
 | 
			
		||||
            return True
 | 
			
		||||
 | 
			
		||||
        for pattern in disabled.split("\n"):
 | 
			
		||||
            if pattern.strip():
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue