From: Yue Lin Ho Date: Thu, 17 Jul 2014 08:27:08 GMT Subject: Re: git update-index not delete lock file when using different worktree 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.