author | Johannes Sixt <j6t@kdbg.org> | |
Wed, 23 Nov 2011 08:49:38 +0000 (09:49 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Nov 2011 18:54:57 +0000 (10:54 -0800) | ||
commit | 2a4037d0a745134a3b94cb3d60d2793a26bd9027 | |
tree | 3d56aae62910b694c47737da1eabc5c24e1d1754 | tree | snapshot |
parent | b4524d343b085b63c68cf5e0a70007c19a048197 | commit | diff |
Fix revert --abort on Windows
On Windows, it is not possible to rename or remove a directory that has
open files. 'revert --abort' renamed .git/sequencer when it still had
.git/sequencer/head open. Close the file as early as possible to allow
the rename operation on Windows.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On Windows, it is not possible to rename or remove a directory that has
open files. 'revert --abort' renamed .git/sequencer when it still had
.git/sequencer/head open. Close the file as early as possible to allow
the rename operation on Windows.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c | diff | blob | history |