Skip to content

Commit

Permalink
tests: at-combinations: simplify setup
Browse files Browse the repository at this point in the history
The test is setting up an upstream branch, but there's a much simpler
way of doing that: git branch -u.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed May 8, 2013
1 parent 7d3ccdf commit 1bc6d02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions t/t1508-at-combinations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ test_expect_success 'setup' '
git checkout -b new-branch &&
test_commit new-one &&
test_commit new-two &&
git config branch.old-branch.remote . &&
git config branch.old-branch.merge refs/heads/master &&
git config branch.new-branch.remote . &&
git config branch.new-branch.merge refs/heads/upstream-branch
git branch -u master old-branch &&
git branch -u upstream-branch new-branch
'

check HEAD new-two
Expand Down

0 comments on commit 1bc6d02

Please sign in to comment.