Git fetch fails. Returns "Reference directory conflict: refs/heads/" with status code 128

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Minor
    • Environment:

      I am noticing that the command bellow fails

      git -c core.askpass=true fetch --tags --progress https://github.com/myproject.git +refs/heads/*:refs/remotes/origin/*
      

      While tracing through the error log, I see that it fails to fetch the repo and then returns a status code of 128. What makes this very confusing is that is prints this out as the reason
      stderr: fatal: Reference directory conflict: refs/heads/

            Assignee:
            Unassigned
            Reporter:
            Emmanuel Esparza
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: