Code

update-index: do not die too early in a read-only repository.
authorJunio C Hamano <junkio@cox.net>
Thu, 22 Feb 2007 08:30:45 +0000 (00:30 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 22 Feb 2007 08:31:53 +0000 (00:31 -0800)
commit7b802b86a6734a47c964d84922af2a016d836882
tree450071188b3acb00e8c1e797cce36c80a155f016
parent2b5f9a8c0cff511f2bb0833b1ee02645b79323f4
update-index: do not die too early in a read-only repository.

This delays the error exit from hold_lock_file_for_update() in
update-index, so that "update-index --refresh" in a read-only
repository can still report what paths are stat-dirty before
exiting.

Also it makes -q to squelch the error message.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-update-index.c