diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-12-04 14:03:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-04 14:25:05 -0800 |
commit | cfe5eda02abddaaeb78c4e8bb31357112f0d5413 (patch) | |
tree | 5781b36c2d74e39ebc57401d40fe43b2f6f66ddd /builtin/commit.c | |
parent | ae475afc0f8685607e2de838db7fb4bee7934d4d (diff) |
t7700: consolidate code into test_has_duplicate_object()
The code to test that objects were not duplicated from the packfile was
duplicated many times. Extract the duplicated code into
test_has_duplicate_object() and use that instead.
Refactor the resulting extraction so that if the git command fails,
the return code is not silently lost.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions