Summary: | "git-checkout -b NEW :/Text" does some wrong thing | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | git-core | Assignee: | placeholder <placeholder> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P3 | CC: | glebfm, ldv, placeholder |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2010-07-03 06:01:18 MSD
(In reply to comment #0) > git-core-1.7.0.6-alt1 > > It is expected that "git-checkout -b NEW :/Text" will checkout a new branch > created off the commit with the message that matches "Text". Is it expected? $ git checkout -b NEW :/Text fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout ':/Text' which can not be resolved as commit? Well, it is really expected. git-1.7.2.1-alt2 -> sisyphus: * Fri Aug 13 2010 Dmitry V. Levin <ldv@altlinux> 1.7.2.1-alt2 - Updated to maint v1.7.2.1-45-gb5e233e. - Backport upstream fix for parsing of ":/token" syntax (closes: #23718). Thank you, it is OK (tested with git-core-1.7.2.3-alt1)! Also, I noticed a similar problem with "git reset --hard :/First" in older versions; now it is also fixed. |