Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37653

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor

      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/

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

              Created:
              Updated:
              Resolved: