Subject: git-rm -n leaves .git/index.lock if not allowed to finish

From: [email-masked]
Date: Fri, 19 Dec 2008 04:02:48 +0800

Bug: if git-rm -n is not allowed to write all it wants to write, it
will leave a .git/index.lock file:
# git-rm -n -r . 2>&1|sed q
error: '.etckeeper' has changes staged in the index
# git-rm -n -r . 2>&1|sed q
fatal: unable to create '.git/index.lock': File exists