tree-diff: rework diff_tree interface to be sha1 based
[gitweb.git] / connected.c
index 427389dc47caa207c6da351e736d37fe56868df3..be0253e21bec3617ad3a7f1b0afc7d2049efc4fd 100644 (file)
@@ -38,7 +38,7 @@ static int check_everything_connected_real(sha1_iterate_fn fn,
        if (transport && transport->smart_options &&
            transport->smart_options->self_contained_and_connected &&
            transport->pack_lockfile &&
-           !suffixcmp(transport->pack_lockfile, ".keep")) {
+           ends_with(transport->pack_lockfile, ".keep")) {
                struct strbuf idx_file = STRBUF_INIT;
                strbuf_addstr(&idx_file, transport->pack_lockfile);
                strbuf_setlen(&idx_file, idx_file.len - 5); /* ".keep" */