5 if [ "x$1" = "x" ] ; then
6 echo "Usage: $0 <Username>"
12 remote_exist
=`grep remote .git/config | grep review | wc -l`
13 if [ "x$remote_exist" = "x0" ] ; then
14 git remote add review
ssh://$USERNAME@review.openocd.org
:29418/openocd.git
15 git config remote.review.push HEAD
:refs
/for
/master
17 echo "Remote review exists"
23 cd "${TOPDIR}/.git/hooks"
24 save_file
=commit-msg-
`date +%F-%T`
25 mv commit-msg
$save_file
26 printf "%-30s" "Updating commit-msg"
28 wget
-o log https
://review.openocd.org
/tools
/hooks
/commit-msg || status
="FAIL"
30 if [ $status = "FAIL" ] ; then
31 mv $save_file commit-msg