X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tools%2Finitial.sh;h=446b98bdaf6945f0bbd2eff32338684312a6d984;hb=8d8c6df557ab1976c6df39cf712b6ef23ce8a27e;hp=9caba5a4a124619d1b7dbbdfe371c7ff66142aae;hpb=26f1354edae2f24da85c2860b6739cbd4821115f;p=openocd.git diff --git a/tools/initial.sh b/tools/initial.sh index 9caba5a4a1..446b98bdaf 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/publish/master + git config remote.review.push HEAD:refs/for/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"