fast-import.c: don't try to commit marks file if write failed
authorBrandon Casey <casey@nrlssc.navy.mil>
Thu, 17 Jan 2008 16:58:34 +0000 (10:58 -0600)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Jan 2008 06:11:42 +0000 (22:11 -0800)
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 <casey@nrlssc.navy.mil>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found