diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-10-25 11:53:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-27 10:12:42 +0900 |
commit | cf79bd9f4c34c635a5a7eeff2699a24744c5a129 (patch) | |
tree | 740855f6bae159ccd6a1744e6897d42d2a1da8fc /t/t9000 | |
parent | files_transaction_finish(): delete reflogs before references (diff) | |
download | tgif-cf79bd9f4c34c635a5a7eeff2699a24744c5a129.tar.xz |
t1409: check that `packed-refs` is not rewritten unnecessarily
There is no need to rewrite the `packed-refs` file except for the case
that we are deleting a reference that has a packed version. Verify
that `packed-refs` is not rewritten when it shouldn't be.
In fact, two of these tests fail:
* A new (empty) `packed-refs` file is created when deleting any loose
reference and no `packed-refs` file previously existed.
* The `packed-refs` file is rewritten unnecessarily when deleting a
loose reference that has no packed counterpart.
Both problems will be fixed in the next commit.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9000')
0 files changed, 0 insertions, 0 deletions