Skip to content

Commit

Permalink
Merge branch 'nd/clone-no-separate-git-dir-with-bare' into maint
Browse files Browse the repository at this point in the history
* nd/clone-no-separate-git-dir-with-bare:
  clone: forbid --bare --separate-git-dir <dir>
  • Loading branch information
Junio C Hamano committed Feb 25, 2013
2 parents a8e00d7 + 95b63f1 commit 0e0c3f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0e0c3f2

Please sign in to comment.