diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-01 12:28:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-01 13:38:42 -0700 |
commit | ebb8e380e98e83f32c1cc04200d3749ab4c0b90a (patch) | |
tree | 578ad31c440cda905a63cce2e11a43655f582efa /builtin/commit.c | |
parent | 41dd4ffaf99532d8344c90a5b1a060ac1f73b232 (diff) | |
download | git-ebb8e380e98e83f32c1cc04200d3749ab4c0b90a.tar.gz |
hold_lock_file_for_append(): release lock on errors
If there is an error copying the old contents to the lockfile, roll
back the lockfile before exiting so that the lockfile is not held
until process cleanup.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions