t0050: appease --chain-lint
Some of the symlink tests check an either-or case using the
"||". This is not wrong, but fools --chain-lint into
thinking the &&-chain is broken (in fact, there is no &&
chain here).
We can solve this by wrapping the "||" inside a {} block.
This is a bit more verbose, but this construct is rare, and
the {} block helps call attention to it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
			
			
This commit is contained in:
		 Jeff King
					Jeff King
				
			
				
					committed by
					
						 Junio C Hamano
						Junio C Hamano
					
				
			
			
				
	
			
			
			 Junio C Hamano
						Junio C Hamano
					
				
			
						parent
						
							545871bf77
						
					
				
				
					commit
					bfe998fc9b
				
			| @ -33,16 +33,20 @@ test_expect_success "detection of case insensitive filesystem during repo init" | ||||
| ' | ||||
| else | ||||
| test_expect_success "detection of case insensitive filesystem during repo init" ' | ||||
| 	{ | ||||
| 		test_must_fail git config --bool core.ignorecase >/dev/null || | ||||
| 			test $(git config --bool core.ignorecase) = false | ||||
| 	} | ||||
| ' | ||||
| fi | ||||
|  | ||||
| if test_have_prereq SYMLINKS | ||||
| then | ||||
| test_expect_success "detection of filesystem w/o symlink support during repo init" ' | ||||
| 	{ | ||||
| 		test_must_fail git config --bool core.symlinks || | ||||
| 		test "$(git config --bool core.symlinks)" = true | ||||
| 	} | ||||
| ' | ||||
| else | ||||
| test_expect_success "detection of filesystem w/o symlink support during repo init" ' | ||||
|  | ||||
		Reference in New Issue
	
	Block a user