Closed djmitche closed 10 years ago
The branch needs to be named "branches/default", that is:
git checkout branches/default
If you use "moco:branches/default", that should also work, but you need my patches that were never applied to Git upstream (it works in git-fc though).
The local branch needs to have that name?
Just making sure, as I'm tracking 'default' in two upstream hg repos, so there's no good way to have the same local name for both of them :/
The local branch needs to have that name?
Yes, that's a limitation of Git. I already sent the patches to fix that, but they were not applied.
For now you would need to do git reset --hard branches/default $what
before every time you want to push.
Or you could use git-fc, in which case you can do git push moco moco:branches/default
.
Great, thanks!
I guess I'll close this then.
hg repo is at https://hg.mozilla.org/build/puppet if you want to have a look
As advertised in the README:
and since that says "src refspec", maybe it's trying to parse that as a local refspec?
Here's my config:
and local branches:
Finally, if I just run 'git push moco', it works, although it rejects the remote and I need to do a pull --rebase to fix it:
This also has the side-effect of creating a 'moco' bookmark on the hg repo. At least, sometimes it does -- on this attempt it did not.