X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=connected.c;h=1e89c1cd1d63f160bf7c95de41be61ff2d888e70;hb=ee459baa5ce0a144e013a4995fd5be96bbecd05e;hp=d7624230d435ded5ef7ba126ef77ab0e888af19b;hpb=147d071816c7011d24c195a9d6fca251ad312532;p=git.git diff --git a/connected.c b/connected.c index d7624230d..1e89c1cd1 100644 --- a/connected.c +++ b/connected.c @@ -6,18 +6,18 @@ /* * If we feed all the commits we want to verify to this command * - * $ git rev-list --verify-objects --stdin --not --all + * $ git rev-list --objects --stdin --not --all * * and if it does not error out, that means everything reachable from - * these commits locally exists and is connected to some of our - * existing refs. + * these commits locally exists and is connected to our existing refs. + * Note that this does _not_ validate the individual objects. * * Returns 0 if everything is connected, non-zero otherwise. */ int check_everything_connected(sha1_iterate_fn fn, int quiet, void *cb_data) { struct child_process rev_list; - const char *argv[] = {"rev-list", "--verify-objects", + const char *argv[] = {"rev-list", "--objects", "--stdin", "--not", "--all", NULL, NULL}; char commit[41]; unsigned char sha1[20];