Logo Ajo Mathew
  • Home
  • About
  • Skills
  • Experiences
  • Education
  • Posts
  • Notes
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo
  • Tags
  • ACI
  • Alert-Processing-Rules
  • ARM
  • Automation
  • Azure
  • Azure Container Groups
  • Azure Container Instances
  • Azure DevOps
  • Azure Network Service Tags
  • Azure-Monitor
  • Azurerm
  • Blob
  • CI
  • Copy Function
  • Customization
  • DevOps
  • DSC
  • Dual Boot
  • English
  • Function
  • Git
  • Linux
  • Logrotate
  • Monitoring
  • Multiple Resource Properties
  • Notion
  • NSG
  • Pipeline
  • Planned-Maintenance
  • POP
  • Powershell
  • PTE
  • Send-Mailmessage
  • Sendgrid
  • Smtp
  • SQL
  • Tar
  • Terraform
  • Timedatectl
  • Tips
  • UIEF
  • Variables
  • Vivaldi
  • Vscode
  • Windows
  • YAML
Hero Image
Azure DevOps | CI - Pipeline failing on checkout

I configured CI build for every pull request, which started failing suddenly with the below sets of errors. error: cannot lock ref 'refs/remotes/origin/release': there is a non-empty directory '.git/refs/remotes/origin/release' blocking reference 'refs/remotes/origin/release' ! [new branch] release -> origin/release (unable to update local ref) ##[warning]Git fetch failed with exit code 1, back off 9.729 seconds before retry. git -c http.extraheader="AUTHORIZATION: bearer ***" fetch --force --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/2476/merge:refs/remotes/pull/2476/merge error: cannot lock ref 'refs/remotes/origin/release': there is a non-empty directory '.git/refs/remotes/origin/release' blocking reference 'refs/remotes/origin/release' I tried cleaning the checkout dir in my custom Azure DevOps build agent. After a lot of searching. I found the root cause.

  • Git
  • Azure DevOps
  • CI
  • Automation
  • tips
Thursday, June 17, 2021 | 1 minute Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
Contact me:
  • ajomathiu@gmail.com
  • ajomathew
  • Ajo Mathew

Toha Theme Logo Toha
© 2026 Ajo Mathew.
Powered by Hugo Logo