From: Felipe Contreras <felipe.contreras@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>,
Brandon Williams <bwilliams.eng@gmail.com>,
Jacob Keller <jacob.keller@gmail.com>,
Tomo Krajina <tkrajina@gmail.com>,
Felipe Contreras <felipe.contreras@gmail.com>
Subject: [PATCH v4 2/3] tests: push: trivial cleanup
Date: Wed, 25 Nov 2020 18:16:15 -0600 [thread overview]
Message-ID: <20201126001616.663910-3-felipe.contreras@gmail.com> (raw)
In-Reply-To: <20201126001616.663910-1-felipe.contreras@gmail.com>
No need to do two checkouts.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
t/t5516-fetch-push.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 4077471937..245eafb170 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -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 &&
--
2.29.2
next prev parent reply other threads:[~2020-11-26 0:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 0:16 [PATCH v4 0/3] refspec: make @ a synonym of HEAD Felipe Contreras
2020-11-26 0:16 ` [PATCH v4 1/3] tests: push: improve cleanup of HEAD tests Felipe Contreras
2020-11-26 0:16 ` Felipe Contreras [this message]
2020-11-26 0:16 ` [PATCH v4 3/3] refspec: make @ a synonym of HEAD Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201126001616.663910-3-felipe.contreras@gmail.com \
--to=felipe.contreras@gmail.com \
--cc=bwilliams.eng@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jacob.keller@gmail.com \
--cc=peff@peff.net \
--cc=tkrajina@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).