Problems with new workflow: Unable to determine default branch to diff against

201 views
Skip to first unread message

Jason Glasgow

unread,
Aug 27, 2010, 7:32:21 AM8/27/10
to Chromium OS dev
I've twice had this problem.

repo start nxxxxxx xxxx-firmware
<edit>
git add
git commit
git cl upload

I then am presented with the error:

jglinux1:xxxx-firmware(nxxxxxx) jglasgow$ git cl upload
Unable to determine default branch to diff against.
Either pass complete "git diff"-style arguments, like
  git cl upload origin/master
or verify this branch is set up to track another (via the --track argument to
"git checkout -b ...").
jglinux1:~ jglasgow$ 


If I try

git cl upload cros/master

then I get a little further.  It fires up an editor an allows me to edit the CL description, but after editing the description it dies again with the same message.

-Jason

Jason Glasgow

unread,
Aug 27, 2010, 7:33:02 AM8/27/10
to Chromium OS dev
From the proper email address. -Jason

Chris Sosa

unread,
Aug 27, 2010, 10:45:06 AM8/27/10
to Jason Glasgow, Chromium OS dev
I think the problem your having is that you ran msb's original command
about doing the find / sed to fix git pushes. I had followed his
instructions and then started having the problem as well. I think the
way to fix this would be to re-run the command switching the items in
the sed statement and then run his updated command. I haven't tried
it yet myself but will try it when I get in.

> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>

Jason Glasgow

unread,
Aug 27, 2010, 11:16:41 AM8/27/10
to Chris Sosa, Chromium OS dev
Thanks.  I ran msb's updated command (at least I think I did).

I was able to fix my problem by adding:

remote = cros
merge = refs/heads/master

to my branch in the .git/config file.

-Jason
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages