(Top-post fixed) [email protected] writes:
>> On Jun 21, 2010, at 19:17, "Jose A. Ortega Ruiz" <[email protected]> wrote: >> >>> In a recent emacs snapshot ("GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, >>> GTK+ Version 2.20.1) of 2010-06-19 on elegiac, modified by Debian") and >>> latest magit from github, magit-push is failing to compute a valid >>> ref-branch; i.e., in magit-push's body, >>> (magit-get "branch" branch "merge") evaluates to nil, and, therefore, >>> the git command executed for a push is of the form: >>> >>> $ git --no-pager push -v origin master:nil >>> >>> which actually creates a new branch (named nil) in the remote repo (my >>> git version is 1.7.1). [snip] >> >> That would most likely be my patch to force pushing to an explicit ref. I >> can fix it to make sure a ref is found but I do fond it curious that it's >> not being found. >> > This is preliminary patch, can someone please review. I'm not the best > elisper and this can probably be done a better way. > > Anyway the patch is located at: > http://gist.github.com/448664 I found the same problem and your patch solves it. (Thanks to Štěpán Němec for pointing me to this thread)
