projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix git(1) link to git-index-pack
[git.git]
/
git-branch.sh
diff --git
a/git-branch.sh
b/git-branch.sh
index
e2db906
..
11d52fd
100755
(executable)
--- a/
git-branch.sh
+++ b/
git-branch.sh
@@
-102,4
+102,5
@@
rev=$(git-rev-parse --verify "$head") || exit
git-check-ref-format "heads/$branchname" ||
die "we do not like '$branchname' as a branch name."
-echo $rev > "$GIT_DIR/refs/heads/$branchname"
+git update-ref "refs/heads/$branchname" $rev
+