Skip to content

Commit

Permalink
Merge branch 'nd/clone-no-separate-git-dir-with-bare'
Browse files Browse the repository at this point in the history
Forbid a useless combination of options to "git clone".

* nd/clone-no-separate-git-dir-with-bare:
  clone: forbid --bare --separate-git-dir <dir>
  • Loading branch information
Junio C Hamano committed Jan 22, 2013
2 parents e9abef6 + 95b63f1 commit 68434e2
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 68434e2

Please sign in to comment.