summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e137a89)
raw | patch | inline | side by side (parent: e137a89)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 19 Oct 2008 22:32:35 +0000 (15:32 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 19 Oct 2008 22:32:42 +0000 (15:32 -0700) |
The code to complain when -b is not given but an explicit --track/--no-track
override was given from the command line was unchanged on one branch and
reworked on the other branch. The merge result incorrectly kept it.
Spotted by Matt McCutchen.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
override was given from the command line was unchanged on one branch and
reworked on the other branch. The merge result incorrectly kept it.
Spotted by Matt McCutchen.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | patch | blob | history |
diff --git a/builtin-checkout.c b/builtin-checkout.c
index ad04a184a28b7cdbb5278cda9c467a2e37b0add8..57b94d282931187a0cb6394d4df707237038a7eb 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
git_xmerge_config("merge.conflictstyle", conflict_style, NULL);
}
- if (!opts.new_branch && (opts.track != git_branch_track))
- die("git checkout: --track and --no-track require -b");
-
if (opts.force && opts.merge)
die("git checkout: -f and -m are incompatible");