bzr-git prevents normal branching behaviour (ERROR: Push is not yet supported for bzr-git. Try dpush instead.)

Bug #551792 reported by Daniel Clemente
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

I have lp:bzr-git installed in ~/.bazaar/plugins. My ~ is tracked by git and ~/.bazaar/plugins is a Bazaar repository.

Now this is strange:
~/.bazaar/plugins $ bzr branch lp:bzr-bisect bisect
bzr: ERROR: Push is not yet supported for bzr-git. Try dpush instead.

- I'm not pushing to a git repo (~), but to a Bazaar one (~/.bazaar/plugins). So don't remind me I'm trying to push to git.
- therefore: bzr-git should be fully transparent here because I'm not dealing with git branches

Tested with latest bzr.dev and bzr-git on Python 2.5.5 on Debian.

Tags: foreign
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Do you perhaps have a git repository in ~ ?

Revision history for this message
Daniel Clemente (n142857) wrote :

Yes I have (details on first line) and I know that pushing to git repositories is not supported, but see the two points above (I'm not pushing to a git repository).

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is beyond bzr-git's control.

affects: bzr-git → bzr
description: updated
description: updated
Revision history for this message
Andrew Bennetts (spiv) wrote :

I'm not sure what we can do about this; bzr intentionally tries to find and use a repository in a containing directory. Perhaps bzr-git should allow a user to say that particular git repositories are not to be treated as shared repositories (e.g. via a config option in locations.conf)?

Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
tags: added: foreign
Revision history for this message
Andrew Bennetts (spiv) wrote :

Btw, in a workaround would be to temporarily set BZR_DISABLE_PLUGINS=git in your environment (requires 2.2b1 or bzr.dev).

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This has been fixed (or at least worked around) by not having bzr-git claim that git repositories are shared repositories.

affects: bzr → bzr-git
Changed in bzr-git:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.