projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git alias: try alias last.
[git.git]
/
git-checkout.sh
diff --git
a/git-checkout.sh
b/git-checkout.sh
index
360aabf
..
564117f
100755
(executable)
--- a/
git-checkout.sh
+++ b/
git-checkout.sh
@@
-197,8
+197,8
@@
fi
if [ "$?" -eq 0 ]; then
if [ "$newbranch" ]; then
if [ "$newbranch_log" ]; then
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"
fi
git-update-ref -m "checkout: Created from $new_name" "refs/heads/$newbranch" $new || exit
branch="$newbranch"