git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git branch --set-upstream regression in master
@ 2011-09-16 21:43 Jay Soffian
  2011-09-16 22:58 ` Junio C Hamano
  2011-09-16 23:52 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Jay Soffian @ 2011-09-16 21:43 UTC (permalink / raw)
  To: git, Junio C Hamano, conrad.irwin

This used to be possible on the checked out branch:

  $ git branch master --set-upstream origin/master

Now it gives "fatal: Cannot force update the current branch." which is
broken. You should be able to setup/change the tracking information on
the checked out branch.

It's apparently due to ci/forbid-unwanted-current-branch-update.

Sorry I don't have time to contribute a patch at the moment.

(BTW, --set-upstream still needs to be fixed so that these mean the same thing:

  $ git branch master --set-upstream origin/master
  $ git branch --set-upstream origin/master master

and to just allow:

  $ git branch --set-upstream origin/master

w/o having to specify the checked-out branch.)

j.

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

end of thread, other threads:[~2011-09-17  0:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16 21:43 git branch --set-upstream regression in master Jay Soffian
2011-09-16 22:58 ` Junio C Hamano
2011-09-16 23:14   ` Junio C Hamano
2011-09-16 23:52 ` Junio C Hamano
2011-09-17  0:19   ` Jay Soffian

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