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
commit
0e0c3f25d0
|
@ -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…
Reference in New Issue