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
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 : |
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 |
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/ |
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/ |
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/ |
Assignee | Original: Mark Waite [ markewaite ] |
Considering the large number of installations and users of the git plugin and git client plugin, I suspect this is an issue in your local installation, not in the plugin. That message seems to indicate that command line git found an inconsistency in the .git/refs/heads directory of the workspace.
You may be able to resolve that complaint by using "Wipe workspace" to delete the entire workspace.
You may need to check your build process to investigate if it is damaging the contents of the .git directory.