threads / discuss / 20042

"Ambiguous information for ref" error

Subject: "Ambiguous information for ref" error

## tl;dr

One message between Jul 7, 2009 and Jul 7, 2009.

replies: 0people: 1as markdown or json

Tavian Barnes· Jul 7, 2009, 02:28 UTC · lore

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

← back to recent threads