Re: Git fetch Failure
- From
- Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
- Date
- Sep 2, 2025, 14:46 UTC
- Message-ID
- <829c6e09-c834-461f-820d-981512a02a76@app.fastmail.com>
- In-Reply-To
- <CAGAx-2Ac2Tt4-jTH=AApK3m=U7d2RJBaTW=uX6jBHzmpWU9NYw@mail.gmail.com>
On Tue, Sep 2, 2025, at 16:08, Tarun【ツ】 wrote:
Show 53 quoted lines
>[snip] > What happened instead? (Actual behavior) > > Git fetch failed with error > > error: cannot lock ref > 'refs/remotes/origin/users/ajya/sqlservermoduleimportM146': Unable to > create > '/Users/admin/Repos/tasks1/.git/refs/remotes/origin/users/ajya/sqlservermoduleimportM146.lock': > File exists. >[snip] > [System Info] > > git version: > > git version 2.51.0 > > cpu: arm64 > > no commit associated with this build > > sizeof-long: 8 > > sizeof-size_t: 8 > > shell-path: /bin/sh > > feature: fsmonitor--daemon > > libcurl: 8.7.1 > > zlib: 1.2.12 > > SHA-1: SHA1_DC > > SHA-256: SHA256_BLK > > default-ref-format: files > > default-hash: sha1 > > uname: Darwin 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 > PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000 arm64 > > compiler info: clang: 17.0.0 (clang-1700.0.13.3) > > libc info: no libc information available > > $SHELL (typically, interactive shell): /bin/zsh > > > > [Enabled iHooks]
It looks like a casing issue caused by `default-ref-format: files`.
``` $ git for-each-ref --format='%(refname)' | grep -i sqlServerModuleImportM146 refs/remotes/origin/users/ajya/sqlServerModuleImportM146 refs/remotes/origin/users/ajya/sqlservermoduleimportM146 ```
You could try
``` $ git clone --ref-format=reftable https://github.com/microsoft/azure-pipelines-tasks.git ```
-- Kristoffer Haugsbakk