2010/8/19 Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx>: > > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> > --- > builtin/clone.c | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/builtin/clone.c b/builtin/clone.c > index efb1e6f..215c432 100644 > --- a/builtin/clone.c > +++ b/builtin/clone.c > @@ -414,6 +414,9 @@ int cmd_clone(int argc, const char **argv, const char *prefix) > repo = xstrdup(make_absolute_path(repo_name)); > else > repo = repo_name; > + is_local = path && !is_bundle; > + if (is_local && option_depth) > + die("local clone with --depth does not make sense"); > > if (argc == 2) > dir = xstrdup(argv[1]); Wouldn't it be more helpful to also say "Use the file:///blabla syntax instead" or just automatically fall back to that protocol when --depth is used? -- Mikael Magnusson -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html