git/list[1] front-page[2] threads[3] people[4] search[5] about
 

fast-import fails with case sensitive tags due to case insensitive lock files

From
WJWendeborn, Jonathan <jonathan.wendeborn@bruker.com>
Date
Mar 1, 2019, 06:19 UTC
Message-ID
<ceb9b34681c14d9ab2a33ba909b5ca75@bruexc101.brumgt.local>
Hi,
I have a problem with fast-import on an NTFS drive: If I try to import tags which are identical apart from their casing a failure due to identical lock file names occurs.

I am running git for windows 2.15.1.2 x64 on a Windows 10 machine (10.0.15063): $ git --version --build-options git version 2.15.1.windows.2 built from commit: 5d5baf91824ec7750b103c8b7c4827ffac202feb sizeof-long: 4 machine: x86_64

MCVE:
 (echo "commit refs/heads/master" && 
 echo "mark :1" &&
 echo "committer me <> 0 +0000" &&
 echo "data 0" &&
 echo "" &&
 echo "tag tag_A" &&
 echo "from :1" &&
 echo "tagger me <> 0 +0000" &&
 echo "data 0" &&
 echo "" &&
 echo "tag tag_a" &&
 echo "from :1" &&
 echo "tagger me <> 0 +0000" &&
 echo "data 0" &&
 echo "") | git fast-import

Instead of having 1 commit with two tags ("tag_A" and "tag_a") I get his error message: Unpacking objects: 100% (4/4), done. error: cannot lock ref 'refs/tags/tag_a': Unable to create 'C:/tmp/.git/refs/tags/tag_a.lock': File exists.

Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.

Best regards, Jonathan

Next: brian m. carlson
Message 1 of 5 in “fast-import fails with case sensitive tags due to case insensitive lock files”
  1. Wendeborn, JonathanMar 1, 2019
  2. brian m. carlsonMar 3, 2019
  3. AW: fast-import fails with case sensitive tags due to case insensitive lock filesWendeborn, Jonathan, Mar 4, 2019
  4. Johannes SchindelinMar 4, 2019
  5. AW: AW: fast-import fails with case sensitive tags due to case insensitive lock filesWendeborn, Jonathan, Mar 5, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.