author | Peter Eriksen <s022018@student.dtu.dk> | |
Mon, 22 Jan 2007 20:29:45 +0000 (21:29 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 22 Jan 2007 21:11:46 +0000 (13:11 -0800) | ||
commit | 8276c0070f8f8959ab4b6ec458fa0740e9abda9e | |
tree | ad334ea6b5c67e9b4d01095c335d28ab2b5baa30 | tree | snapshot |
parent | e136f33b5ff9b2293a61073295b0294fad8e6e42 | commit | diff |
sha1_file.c: Avoid multiple calls to find_pack_entry().
We used to call find_pack_entry() twice from read_sha1_file() in order
to avoid printing an error message, when the object did not exist. This
is fixed by moving the call to error() to the only place it really
could be called.
Signed-off-by: Peter Eriksen <s022018@student.dtu.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
We used to call find_pack_entry() twice from read_sha1_file() in order
to avoid printing an error message, when the object did not exist. This
is fixed by moving the call to error() to the only place it really
could be called.
Signed-off-by: Peter Eriksen <s022018@student.dtu.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | diff | blob | history |