All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry <wipedout@yandex.ru>
To: git@vger.kernel.org
Subject: git push first asks for credentials, then checks the branch exists
Date: Wed, 05 Mar 2014 13:36:12 +0400	[thread overview]
Message-ID: <259061394012172@web5j.yandex.ru> (raw)

Hi,

Here's my usecase. I have created a BranchWithVeryLongName and I want to have it pushed to origin. So I use this command with version 1.8.1.2:

git push origin BranchMistypedLongName

(note that I mistyped the branch name). The following happens:
1. git asks me for username and password
2. it authenticates on the origin server
3. it bails out with "error: sfc refspec BranchMistypedLongName does not match any"


Can't git perhaps check that the branch exists before it asks me for credentials and just say there's no such branch?

Could you please fix this?

Thank you.
Dmitry.

             reply	other threads:[~2014-03-05  9:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05  9:36 Dmitry [this message]
2014-03-05 19:02 ` [PATCH 0/3] push: detect local refspec errors early Jeff King
2014-03-05 19:03   ` [PATCH 1/3] match_explicit: hoist refspec lhs checks into their own function Jeff King
2014-03-05 19:03   ` [PATCH 2/3] match_explicit_lhs: allow a "verify only" mode Jeff King
2014-03-05 19:04   ` [PATCH 3/3] push: detect local refspec errors early Jeff King
2014-03-05 20:51   ` [PATCH 0/3] " Junio C Hamano
2014-03-05 20:56     ` Jeff King

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=259061394012172@web5j.yandex.ru \
    --to=wipedout@yandex.ru \
    --cc=git@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.