git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git push first asks for credentials, then checks the branch exists
@ 2014-03-05  9:36 Dmitry
  2014-03-05 19:02 ` [PATCH 0/3] push: detect local refspec errors early Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry @ 2014-03-05  9:36 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-05 20:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05  9:36 git push first asks for credentials, then checks the branch exists Dmitry
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

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).