/[MITgcm]/MITgcm_contrib/test_scripts/svante/test_submit_svante
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/svante/test_submit_svante

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.21 by jmc, Mon Feb 26 21:28:39 2018 UTC revision 1.22 by jmc, Wed Nov 7 23:10:03 2018 UTC
# Line 108  if [ $checkOut -ge 1 ] ; then Line 108  if [ $checkOut -ge 1 ] ; then
108    
109    if [ $checkOut -eq 1 ] ; then    if [ $checkOut -eq 1 ] ; then
110      if test -e $git_code/.git/config ; then      if test -e $git_code/.git/config ; then
       ( cd $git_code ; git checkout master )                    | tee -a $LOG_FIL  
111        echo -n "Updating current clone ( $git_code ) ..."        | tee -a $LOG_FIL        echo -n "Updating current clone ( $git_code ) ..."        | tee -a $LOG_FIL
112        echo '' >> $LOG_FIL        echo '' >> $LOG_FIL
113        ( cd $git_code ; git pull )                               >> $LOG_FIL 2>&1        ( cd $git_code ; git pull )                               >> $LOG_FIL 2>&1
# Line 118  if [ $checkOut -ge 1 ] ; then Line 117  if [ $checkOut -ge 1 ] ; then
117           exit           exit
118        else echo "  done"                                        | tee -a $LOG_FIL        else echo "  done"                                        | tee -a $LOG_FIL
119        fi        fi
120          echo "  and checkout master:"                             | tee -a $LOG_FIL
121          ( cd $git_code ; git checkout master -- . )               | tee -a $LOG_FIL
122      else      else
123        echo "missing file: $git_code/.git/config => try a new clone"     | tee -a $LOG_FIL        echo "missing file: $git_code/.git/config => try a new clone"     | tee -a $LOG_FIL
124        checkOut=2        checkOut=2

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.22