reset: avoid redundant error message
commit1ca38f85860b33ddc79b1494baf29aecde8616cd
authorMartin von Zweigbergk <martinvonz@gmail.com>
Tue, 15 Jan 2013 05:47:42 +0000 (14 21:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jan 2013 17:38:07 +0000 (15 09:38 -0800)
treee006fb78cad200db0da68a3bebc4b4c6445a6788
parentb7099a06e8ffe61a06d3e32632e832e59f23bd4d
reset: avoid redundant error message

If writing or committing the new index file fails, we print "Could not
write new index file." followed by "Could not reset index file to
revision $rev.". The first message seems to imply the second, so print
only the first message.

Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c