forked from jan-leila/nix-config
		
	fix: fixed pre and post commit hook behavior
This commit is contained in:
		
							parent
							
								
									290c0692bb
								
							
						
					
					
						commit
						f21777b1fb
					
				
					 4 changed files with 48 additions and 16 deletions
				
			
		|  | @ -17,8 +17,8 @@ fi | |||
| if [ "$target_branch" = "main" ]; then | ||||
|     echo "Merging into main branch - running nix flake check..." | ||||
|      | ||||
|     echo "stashing all uncommitted changes" | ||||
|     git stash -q --keep-index | ||||
|     echo "stashing all uncommitted changes with named stash (excluding hooks)" | ||||
|     git stash push -q --keep-index -m "pre-merge-stash-$(date +%s)" -- ':!.hooks/' | ||||
| 
 | ||||
|     echo "checking flakes all compile" | ||||
|     nix flake check | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue