path: root/Documentation
diff options
authorBrandon Casey <>2008-02-22 18:47:08 (GMT)
committerJunio C Hamano <>2008-02-27 21:26:24 (GMT)
commit7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322 (patch)
treec4c82fd80edf4e489a8a1720ff2df5083539c627 /Documentation
parent6ecbc851fb30f540e1a25761f221aab963cfe619 (diff)
builtin-reflog.c: don't install new reflog on write failure
When expiring reflog entries, a new temporary log is written which contains only the entries to retain. After it is written, it is renamed to replace the existing reflog. Currently, we check that writing of the new log is successful and print a message on failure, but the original reflog is still replaced with the new reflog even on failure. This patch causes the original reflog to be retained if we fail when writing the new reflog. Signed-off-by: Brandon Casey <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions