X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=shell.c;h=c983fc7b86ed3c7792d4e325e4b88845719494d1;hb=566842f62bdf1f16c2e94fb431445d2e6c0f3f0b;hp=8c08cf0fb339d293383c3dacb8cdfc805afa3727;hpb=b4a081b428c607f98c5d0a0eec8d543dc1f2abcd;p=git.git diff --git a/shell.c b/shell.c index 8c08cf0fb..c983fc7b8 100644 --- a/shell.c +++ b/shell.c @@ -8,7 +8,7 @@ static int do_generic_cmd(const char *me, char *arg) if (!arg || !(arg = sq_dequote(arg))) die("bad argument"); - if (strncmp(me, "git-", 4)) + if (prefixcmp(me, "git-")) die("bad command"); my_argv[0] = me + 4;