From: Michael Haggerty Date: Wed, 1 Oct 2014 10:28:23 +0000 (+0200) Subject: commit_lock_file(): rollback lock file on failure to rename X-Git-Tag: v2.2.0-rc0~53^2~19 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1b1648f46bcb638f558e9cbd2d0e89066c89c44e?ds=sidebyside;hp=1b1648f46bcb638f558e9cbd2d0e89066c89c44e commit_lock_file(): rollback lock file on failure to rename If rename() fails, call rollback_lock_file() to delete the lock file (in case it is still present) and reset the filename field to the empty string so that the lockfile object is left in a valid state. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---