mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 09:16:36 +00:00 
			
		
		
		
	Don't use check=True for git diff (ends with code 1)
This commit is contained in:
		
							parent
							
								
									f1531c7274
								
							
						
					
					
						commit
						8621bdaae1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								sync.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								sync.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -349,8 +349,8 @@ def show_diffs(diffs: Iterable[FileDiff], ask_show_diff: bool, apply_fix_prompt:
 | 
			
		|||
                continue
 | 
			
		||||
            case DiffStatus.CONTENT_DIFFERS:
 | 
			
		||||
                if ask_show_diff is False or yes_no(f"Show diff for {diff.sys_file}?"):
 | 
			
		||||
                    subprocess.run(
 | 
			
		||||
                        ["git", "diff", str(diff.dot_file), str(diff.sys_file)], check=True  # noqa: S607,S603
 | 
			
		||||
                    subprocess.run(  # noqa: PLW1510
 | 
			
		||||
                        ["git", "diff", str(diff.dot_file), str(diff.sys_file)],  # noqa: S607,S603
 | 
			
		||||
                    )
 | 
			
		||||
            case _:
 | 
			
		||||
                _str_status = diff.status.name.replace("_", " ")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue