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

Re: Ambiguous ref names

From
Jeenu V <jeenuv@gmail.com>
Date
Dec 11, 2009, 08:03 UTC
Message-ID
<5195c8760912110003u6deabf7ey44b1f2dd448ce7fe@mail.gmail.com>
In-Reply-To
<5195c8760911200355x1aff9781l848f974c9f09f416@mail.gmail.com>
On Fri, Nov 20, 2009 at 5:25 PM, Jeenu V <jeenuv@gmail.com> wrote:
Show 16 quoted lines
>
> On Fri, Nov 20, 2009 at 4:29 PM, Junio C Hamano <gitster@pobox.com> wrote:
> > Jeenu V <jeenuv@gmail.com> writes:
> >
> >> On Fri, Nov 20, 2009 at 3:56 PM, Junio C Hamano <gitster@pobox.com> wrote:
> >>> [...]
> >>> It could be that you have a tag and a branch that are both named a.b.c,
> >>> though.
> >>
> >> Hm, right. But I'm getting this from an existing local repo of mine. I
> >> can't see any tags; 'git tag -l' is empty. Is there any more info that
> >> I can provide?
> >
> > man git-for-each-ref?
>
> It does list all refs that I know of, but I don't see any duplicate entries.

Ah, I think I get what happened here: I had used git update-ref, which turned out to be used wrongly. My intention was to update a.b.c to a new ref, but I used it 'git update-ref XXXXXX', rather than 'git update-ref refs/heads/a.b.c XXXXXX'. The wrong usage created .git/a.b.c and I guess this was causing the warning.

-- :J

Previous: Jeenu V
Message 6 of 6 in “Ambiguous ref names”
  1. Jeenu VNov 20, 2009
  2. Junio C HamanoNov 20, 2009
  3. Jeenu VNov 20, 2009
  4. Junio C HamanoNov 20, 2009
  5. Jeenu VNov 20, 2009
  6. Jeenu VDec 11, 2009

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.