tests: push: trivial cleanup
No need to do two checkouts. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		
				
					committed by
					
						
						Junio C Hamano
					
				
			
			
				
	
			
			
			
						parent
						
							12a30a3ea6
						
					
				
				
					commit
					e7f80eafd1
				
			@ -457,8 +457,7 @@ test_expect_success 'push with HEAD nonexisting at remote' '
 | 
			
		||||
test_expect_success 'push with +HEAD' '
 | 
			
		||||
 | 
			
		||||
	mk_test testrepo heads/master &&
 | 
			
		||||
	git checkout master &&
 | 
			
		||||
	git checkout -b local &&
 | 
			
		||||
	git checkout -b local master &&
 | 
			
		||||
	test_when_finished "git checkout master; git branch -D local" &&
 | 
			
		||||
	git push testrepo master local &&
 | 
			
		||||
	check_push_result testrepo $the_commit heads/master &&
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user