2

I am using git-svn repo on Windows, using msysgit 1.8.5. Here is my .git/config:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
    hideDotFiles = dotGitOnly
[svn-remote "svn"] 
    url = https://svn.domain.com:8443/svn
    fetch = trunk:refs/remotes/trunk
    branches = branches/{BR_4_1_4}:refs/remotes/branches/*

And my list of branches:

$ git branch -a
  BR_4_1_4
* trunk
  remotes/branches/BR_4_1_4
  remotes/trunk

And I want to create a branch off of trunk named trunk_work, so I issue the following command (you can also see the subsequent error):

$ git branch trunk_work
warning: refname 'trunk' is ambiguous.
fatal: Ambiguous object name: 'trunk'.

Any idea why this is failing? I Googled a bit but didn't see anything specific to this problem. Thanks in advance.

void.pointer
  • 24,859
  • 31
  • 132
  • 243

1 Answers1

2

I mentioned in the comments, I think you can probably solve your problem using the solutions given in this answer: Git: warning: refname 'xxx' is ambiguous when using git-svn

I think the second highest rated answer may be the one you're most interested in:

git config --global core.warnambiguousrefs false

Although it also looked like, from those comments, that specifiying the branch in the format heads/trunk (if that's the one you're interested in), may do the job.

Some documentation: Git config

Community
  • 1
  • 1
Chris
  • 8,268
  • 3
  • 33
  • 46