I am using Bamboo for CI and Bitbucket server(Hosted on Azure Windows 2016 VM) (Privately hosted on Azure Linux VM). I also have added repo and branch in build plan from repository settings. Now when I am running Builds it is failing at very first Source code checkout task intermittently with error as below
error: some local refs could not be updated; try running error git remote prune ssh:// <.git>
where it is fetching all the branches of the linked repository which should not be the case as I am specifically mentioning the branch name to be picked for build.
am I missing something due to which the error is coming randomly