winlin

refine git sync script, checkout master

@@ -14,7 +14,7 @@ work_dir=`(cd ${work_dir}/.. && pwd)` @@ -14,7 +14,7 @@ work_dir=`(cd ${work_dir}/.. && pwd)`
14 product_dir=$work_dir 14 product_dir=$work_dir
15 15
16 # allow start script from any dir 16 # allow start script from any dir
17 -cd $work_dir 17 +cd $work_dir && git checkout master
18 18
19 . ${product_dir}/scripts/_log.sh 19 . ${product_dir}/scripts/_log.sh
20 ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi 20 ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
@@ -14,7 +14,7 @@ work_dir=`(cd ${work_dir}/.. && pwd)` @@ -14,7 +14,7 @@ work_dir=`(cd ${work_dir}/.. && pwd)`
14 product_dir=$work_dir 14 product_dir=$work_dir
15 15
16 # allow start script from any dir 16 # allow start script from any dir
17 -cd $work_dir 17 +cd $work_dir && git checkout master
18 18
19 . ${product_dir}/scripts/_log.sh 19 . ${product_dir}/scripts/_log.sh
20 ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi 20 ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi