author | Junio C Hamano <junkio@cox.net> | |
Wed, 2 Nov 2005 20:17:47 +0000 (12:17 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 3 Nov 2005 00:50:58 +0000 (16:50 -0800) | ||
commit | 13d1cc3604a1a64cb5a6025bba8af8b74a373963 | |
tree | cea2bfd5cdf2af19f8b8c6011201bdd81a759831 | tree | snapshot |
parent | 4ccafd7a02fd9905cc5382b2c1d5abdb11a7525a | commit | diff |
Do not fail on hierarchical branch names.
"git-checkout -b frotz/nitfol master" failed to create
$GIT_DIR/refs/heads/frotz/nitfol but went ahead and updated
$GIT_DIR/HEAD to point at it, resulting in a corrupt repository.
Exit when we cannot create the new branch with an error status.
While we are at it, there is no reason to forbid subdirectories
in refs/heads, so make sure we handle that correctly.
Signed-off-by: Junio C Hamano <junkio@cox.net>
"git-checkout -b frotz/nitfol master" failed to create
$GIT_DIR/refs/heads/frotz/nitfol but went ahead and updated
$GIT_DIR/HEAD to point at it, resulting in a corrupt repository.
Exit when we cannot create the new branch with an error status.
While we are at it, there is no reason to forbid subdirectories
in refs/heads, so make sure we handle that correctly.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-branch.sh | diff | blob | history | |
git-checkout.sh | diff | blob | history |