git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH git-remote-bzr] Adapt to new semantics of remote-helper "import" command

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 23, 2012, 00:12 UTC
Message-ID
<20120123001228.GA1209@burratino>
In-Reply-To
<4F1C9D4C.6090603@samba.org>
Jelmer Vernooij wrote:
> On 01/22/2012 06:46 AM, Jonathan Nieder wrote:
Show 5 quoted lines
>> BTW, would you mind if I sent a patch to include git-remote-bzr in
>> git.git under contrib/?
>
> Please note that the bzr-git package, which provides git integration
> for bzr and vice versa, also includes a 'git-remote-bzr' command.

That's good to hear. Then there should be no need for git.git to have its own helper.

Unfortunately, when I try to clone any repo, at the last step I get
 Traceback (most recent call last):map 6/7
  File "/usr/lib/git-core/git-remote-bzr", line 220, in <module>
    commands[argv[0]](argv, shortname, remote_dir)
  File "/usr/lib/git-core/git-remote-bzr", line 89, in cmd_list
    for ref, git_sha1 in refs.as_dict().iteritems():
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 196, in as_dict
    ret[key] = self[("%s/%s" % (base, key)).strip("/")]
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 267, in __getitem__
    _, sha = self._follow(name)
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 249, in _follow
    contents = self.read_ref(refname)
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 225, in read_ref
    contents = self.read_loose_ref(refname)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/refs.py", line 129, in read_loose_ref
    tag_name = ref_to_tag_name(ref)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/refs.py", line 89, in ref_to_tag_name
    raise ValueError("unable to map ref %s back to tag name" % ref)
 ValueError: unable to map ref refs/heads back to tag name
Will file a bug.
Previous: Jelmer VernooijNext: Gabriel Filion
Message 3 of 4 in “Adapt to new semantics of remote-helper "import" command”
  1. Adapt to new semantics of remote-helper "import" commandJonathan Nieder, Jan 22, 2012
  2. Jelmer VernooijJan 22, 2012
  3. Jonathan NiederJan 23, 2012
  4. Gabriel FilionFeb 3, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.