Skip to content
Snippets Groups Projects
Select Git revision
  • v1.0rc3
  • passt default
  • master
  • pu
  • todo
  • next
  • maint
  • v2.8.0-rc1
  • v2.8.0-rc0
  • v2.7.2
  • v2.7.1
  • v2.7.0
  • v2.6.5
  • v2.7.0-rc3
  • v2.7.0-rc2
  • v2.7.0-rc1
  • v2.7.0-rc0
  • v2.6.4
  • v2.6.3
  • v2.6.2
  • v2.6.1
  • v2.3.10
  • v2.5.4
  • v2.4.10
  • v2.6.0
  • v2.6.0-rc3
  • v2.5.3
27 results

git-checkout.sh

  • Junio C Hamano's avatar
    13d1cc36
    Do not fail on hierarchical branch names. · 13d1cc36
    Junio C Hamano authored
    
    "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: default avatarJunio C Hamano <junkio@cox.net>
    13d1cc36
    History
    Do not fail on hierarchical branch names.
    Junio C Hamano authored
    
    "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: default avatarJunio C Hamano <junkio@cox.net>