bzr branch auto name should remove .git

Bug #492239 reported by Gary van der Merwe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

If you run
bzr branch FROM_LOCATION
without TO_LOCATION specified, bzr decides on a name for the TO_LOCATION. When using bzr-git, it should remove the .git from this name.

Steps to reproduce:
bzr branch git://github.com/simonw/django-openid.git

Actual results:
branched created at django-openid.git

Expected results:
branched created at django-openid

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

The name is determined by bzr, not by bzr-git

affects: bzr-git → bzr
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 492239] Re: bzr branch auto name should remove .git

2009/12/18 Jelmer Vernooij <email address hidden>:
> The name is determined by bzr, not by bzr-git

Perhaps we should ask the source branch object for the recommended
destination directory name?

--
Martin <http://launchpad.net/~mbp/>

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

Perhaps it might be useful to allow Branch implementations to suggest
names for derived branches. It would be strange to remove ".git" as
suffix from the name of a regular bzr branch.

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jelmer Vernooij wrote:
> The name is determined by bzr, not by bzr-git
>
> ** Project changed: bzr-git => bzr
>

It sounds like we should provide a hook that bzr-git could use. I don't
think we want to hard-code inside bzr
if url.endswith('.git'):
 url = url[:-4]

We could, but a more flexible "map source name to default output name"
seems better.

Then again, just because another tool does it that way doesn't mean we
have to. The user can just as easily give a target name....

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksq4L8ACgkQJdeBCYSNAAP2+wCaAsi7u/mnLDhxkh91WBj/Cnni
j50AoI0J3Trxa+jZJsj+IZP8N0bglO8S
=Jbdb
-----END PGP SIGNATURE-----

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

On Fri, 2009-12-18 at 01:48 +0000, Martin Pool wrote:
> 2009/12/18 Jelmer Vernooij <email address hidden>:
> > The name is determined by bzr, not by bzr-git
>
> Perhaps we should ask the source branch object for the recommended
> destination directory name?
Yes, that would be a good idea I think.

Cheers,

Jelmer

Martin Pool (mbp)
tags: added: format-infrastructure
Changed in bzr:
status: New → Confirmed
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: added: foreign
Jelmer Vernooij (jelmer)
tags: added: git-support
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.