X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=shell.c;h=fe2d314593ba5ee3b985b778c2e7ebfdcd9da44c;hb=7089816cecfb336040f65dcf835050e9629e0b06;hp=464ee1a201ff014c390ddfd653088f7dffd13a84;hpb=9fc73853a0480851a94e182525a26f0741c597d8;p=platform%2Fupstream%2Fgit.git diff --git a/shell.c b/shell.c index 464ee1a..fe2d314 100644 --- a/shell.c +++ b/shell.c @@ -13,7 +13,7 @@ static int do_generic_cmd(const char *me, char *arg) const char *my_argv[4]; setup_path(); - if (!arg || !(arg = sq_dequote(arg))) + if (!arg || !(arg = sq_dequote(arg)) || *arg == '-') die("bad argument"); if (!starts_with(me, "git-")) die("bad command");