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

Re: git update-index not delete lock file when using different worktree

From
Yue Lin Ho <yuelinho777@gmail.com>
Date
Jul 17, 2014, 08:27 UTC
Message-ID
<1405585628972-7615306.post@n2.nabble.com>
In-Reply-To
<1405567125455-7615300.post@n2.nabble.com>

I see that refresh() of update_index.c calls setup_work_tree() to change dir to working tree. And the dir is not changed back to git dir before commit_lock_file() or rollback_lock_file() is called.

So, commit_lock_file() rename file failed. or rollback_lock_file() delete file failed.

-- View this message in context: http://git.661346.n2.nabble.com/git-update-index-not-delete-lock-file-when-using-different-worktree-tp7615300p7615306.html Sent from the git mailing list archive at Nabble.com.

Previous: Yue Lin HoNext: Duy Nguyen
Message 2 of 4 in “git update-index not delete lock file when using different worktree”
  1. Yue Lin HoJul 17, 2014
  2. Yue Lin HoJul 17, 2014
  3. Duy NguyenJul 17, 2014
  4. Yue Lin HoJul 18, 2014

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.