diff options
author | Frantisek Hrbata <frantisek@hrbata.com> | 2022-05-20 14:49:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-27 14:51:16 -0700 |
commit | 35919bf1ab9d1451547d229f3a11a63c70f385df (patch) | |
tree | 151be3dc1cf9cb75ce1bba9e2a7ccfc504e8f2cd /builtin/commit-graph.c | |
parent | 6448182a831a5704601b7ad29afa1a26c40a4d53 (diff) |
transport: unify return values and exit point from transport_push()
It seems there is no reason to return 1 instead of -1 when push_refs()
is not set in transport vtable. Let's unify the error return values and
use the done label as a single exit point from transport_push().
Suggested-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
Reviewed-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions