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

When a file was locked by some program, git will work stupidly

From
DXdayong xie <dayong1111@gmail.com>
Date
Nov 2, 2015, 04:56 UTC
Message-ID
<CABEb4T7V=WEi-ZZm7ywOFASm+=LtAyOz53gqv-jjuzF-3=veeA@mail.gmail.com>

To be specific In my Unity project, there is a native plugin, and plugin's extension is .dll, and this plugin is under git version control, when Unity is running, the plugin file will be locked. If i merge another branch, which contains modification of the plugin, git will report error, looks like: error: unable to unlink old 'xxxxxxx/xxx.dll' (Permission denied) This is not bad, however, the unfinished merge action will not revert by git, a lot of changes produced in repository. usually it makes me crazy, even worse, some of my partners are not good at using git. Of course, this problem can be avoided by quit Unity, but not every time we can remember. In my opinion, git should revert the unfinished action when the error occurred, not just stop.

-- 
--------------------------------------------------------------
Best Regards,
John Xie
--------------------------------------------------------------
Next: Randall S. Becker
Message 1 of 5 in “When a file was locked by some program, git will work stupidly”
  1. dayong xieNov 2, 2015
  2. Randall S. BeckerNov 2, 2015
  3. Lasse MakholmNov 4, 2015
  4. Mr Guillaume SerenNov 2, 2015
  5. Mr Guillaume SerenNov 3, 2015

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.