Browse Source

Merge branch 'nd/clone-no-separate-git-dir-with-bare' into maint

* nd/clone-no-separate-git-dir-with-bare:
  clone: forbid --bare --separate-git-dir <dir>
maint
Junio C Hamano 12 years ago
parent
commit
0e0c3f25d0
  1. 2
      builtin/clone.c

2
builtin/clone.c

@ -704,6 +704,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix) @@ -704,6 +704,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
if (option_origin)
die(_("--bare and --origin %s options are incompatible."),
option_origin);
if (real_git_dir)
die(_("--bare and --separate-git-dir are incompatible."));
option_no_checkout = 1;
}


Loading…
Cancel
Save