summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-01-17 16:58:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-18 06:11:42 (GMT)
commitfb54abd604080dc2a719934a0a72964a7caf8ff7 (patch)
treede775eebd844628371911b0354f0ce20aca1ff18 /sha1_file.c
parentb531394d5829b22fd40e38e1d3aa6e97cb5b84ef (diff)
downloadgit-fb54abd604080dc2a719934a0a72964a7caf8ff7.zip
git-fb54abd604080dc2a719934a0a72964a7caf8ff7.tar.gz
git-fb54abd604080dc2a719934a0a72964a7caf8ff7.tar.bz2
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 <casey@nrlssc.navy.mil> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions