From: Brandon Casey Date: Thu, 17 Jan 2008 16:58:34 +0000 (-0600) Subject: fast-import.c: don't try to commit marks file if write failed X-Git-Tag: v1.5.4-rc4~22 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fb54abd604080dc2a719934a0a72964a7caf8ff7?ds=inline;hp=fb54abd604080dc2a719934a0a72964a7caf8ff7 fast-import.c: don't try to commit marks file if write failed We also move the assignment of -1 to the lock file descriptor up, so that rollback_lock_file() can be called safely after a possible attempt to fclose(). This matches the contents of the 'if' statement just above testing success of fdopen(). Signed-off-by: Brandon Casey Acked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano ---