Skip to content

Commit 1bc6d02

Browse files
Felipe Contrerasgitster
authored andcommitted
tests: at-combinations: simplify setup
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>
1 parent 7d3ccdf commit 1bc6d02

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

t/t1508-at-combinations.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ test_expect_success 'setup' '
3131
git checkout -b new-branch &&
3232
test_commit new-one &&
3333
test_commit new-two &&
34-
git config branch.old-branch.remote . &&
35-
git config branch.old-branch.merge refs/heads/master &&
36-
git config branch.new-branch.remote . &&
37-
git config branch.new-branch.merge refs/heads/upstream-branch
34+
git branch -u master old-branch &&
35+
git branch -u upstream-branch new-branch
3836
'
3937

4038
check HEAD new-two

0 commit comments

Comments
 (0)