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

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

    • 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/

          [JENKINS-37653] Git fetch fails. Returns "Reference directory conflict: refs/heads/" with status code 128

          Emmanuel Esparza created issue -
          Emmanuel Esparza made changes -
          Environment Original: Jenkins 2.11
          Containerized Master Docker Version 1.11.1
          Backed by EFS
          Running on Amazon Linux ami aws-elasticbeanstalk-amzn-2016.03.2.x86_64-ecs-hvm-201606260408
          On demand EC2 agents using the same AMI
          New: Jenkins 2.11
          Containerized Master Docker Version 1.11.1
          Backed by EFS
          Running on Amazon Linux ami aws-elasticbeanstalk-amzn-2016.03.2.x86_64-ecs-hvm-201606260408
          On demand EC2 agents using the same AMI

          Git client version :
          Emmanuel Esparza made changes -
          Environment Original: Jenkins 2.11
          Containerized Master Docker Version 1.11.1
          Backed by EFS
          Running on Amazon Linux ami aws-elasticbeanstalk-amzn-2016.03.2.x86_64-ecs-hvm-201606260408
          On demand EC2 agents using the same AMI

          Git client version :
          New: Jenkins 2.11
          Containerized Master Docker Version 1.11.1
          Backed by EFS
          Running on Amazon Linux ami aws-elasticbeanstalk-amzn-2016.03.2.x86_64-ecs-hvm-201606260408
          On demand EC2 agents using the same AMI

          Git client version :1.21.0
          Git version: 2.5.3
          Mark Waite made changes -
          Description Original: 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/

          New: 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/

          Mark Waite made changes -
          Description Original: 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/

          New: 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/

          Mark Waite made changes -
          Description Original: 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/

          New: I am noticing that the command bellow fails

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

          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/

          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: