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

"Ambiguous information for ref" error

From
TBTavian Barnes <tavianator@gmail.com>
Date
Jul 7, 2009, 02:28 UTC
Message-ID
<add883140907061928v5d3277adyd18371d25affd8ec@mail.gmail.com>

So I'm trying to set up a bare repository with a branch that tracks a remote ref that isn't the one I'm mirroring. So, I run

git clone --mirror <origin> . git remote add -f other <remote> git branch --track other remotes/other/master

But I'm getting the error "error: Not tracking: ambiguous information for ref refs/remotes/other/master". Googling this error only gave the place in the git source code where it is returned, which seems to indicate that it happens when there is more than one tracking match (tracking.matches > 1). But I'm not sure exactly what that means. Any advice would be appreciated. Thanks!

-- 
Tavian Barnes
Message 1 of 1 in “"Ambiguous information for ref" error”
  1. Tavian BarnesJul 7, 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.