Give python a chance to find "backported" modules
[git.git] / git-branch.sh
index e2db906..11d52fd 100755 (executable)
@@ -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
+