diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-01 12:28:23 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2014-10-01 13:45:14 -0700 |
| commit | 1b1648f46bcb638f558e9cbd2d0e89066c89c44e (patch) | |
| tree | 47a9ea458b4b3a3f460ddacf79934fe88c016ebd /contrib/persistent-https | |
| parent | close_lock_file(): if close fails, roll back (diff) | |
| download | git-1b1648f46bcb638f558e9cbd2d0e89066c89c44e.tar.gz git-1b1648f46bcb638f558e9cbd2d0e89066c89c44e.zip | |
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 <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
