X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tools%2Finitial.sh;h=9580c9a9c481efdaf0e90e40bd744bbd81dc26bd;hp=c183d014e3daa87ee8292a2ebc24a134746619db;hb=f5e97b5e1b62322b45b4ff5f2f2797c5e9188739;hpb=8e5ea23201033f25323db1f8604a8860129c017a diff --git a/tools/initial.sh b/tools/initial.sh index c183d014e3..9580c9a9c4 100755 --- a/tools/initial.sh +++ b/tools/initial.sh @@ -12,7 +12,7 @@ add_remote() remote_exist=`grep remote .git/config | grep review | wc -l` if [ "x$remote_exist" = "x0" ] ; then git remote add review ssh://$USERNAME@openocd.zylin.com:29418/openocd.git - git config remote.review.push HEAD:refs/for/master + git config remote.review.push HEAD:refs/publish/master else echo "Remote review exists" fi @@ -20,7 +20,7 @@ add_remote() update_commit_msg() { - cd ${TOPDIR}/.git/hooks + cd "${TOPDIR}/.git/hooks" save_file=commit-msg-`date +%F-%T` mv commit-msg $save_file printf "%-30s" "Updating commit-msg"