Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add approxidate test calls.
[gitweb.git]
/
git-branch.sh
diff --git
a/git-branch.sh
b/git-branch.sh
index e2db9063d4c63288c5834046962290ff9dfca127..11d52fd78ed11887006ba23470083e2560439c0c 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
+