X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-checkout.sh;h=564117f0064aba32e190a49106eaecfdb422b31e;hb=fb6a9f93d39e4e5fdb83673a927f71a34e9fb7c0;hp=360aabf9e35121ef83128d6731df189839efbe05;hpb=a5c8a98ca7e978c334e956df7ae2165c75c494da;p=git.git diff --git a/git-checkout.sh b/git-checkout.sh index 360aabf9..564117f0 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -197,8 +197,8 @@ fi if [ "$?" -eq 0 ]; then if [ "$newbranch" ]; then if [ "$newbranch_log" ]; then - mkdir -p $(dirname "$GIT_DIR/logs/refs/heads/$branchname") - touch "$GIT_DIR/logs/refs/heads/$branchname" + mkdir -p $(dirname "$GIT_DIR/logs/refs/heads/$newbranch") + touch "$GIT_DIR/logs/refs/heads/$newbranch" fi git-update-ref -m "checkout: Created from $new_name" "refs/heads/$newbranch" $new || exit branch="$newbranch"