diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-02-22 12:47:08 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-27 13:26:24 -0800 |
commit | 7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322 (patch) | |
tree | c4c82fd80edf4e489a8a1720ff2df5083539c627 /tree-walk.c | |
parent | 6ecbc851fb30f540e1a25761f221aab963cfe619 (diff) | |
download | git-7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322.tar.gz git-7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322.tar.xz |
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 <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions