/[MITgcm]/MITgcm_contrib/test_scripts/other/test_local
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/other/test_local

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

revision 1.17 by jmc, Mon Oct 2 13:02:27 2023 UTC revision 1.18 by jmc, Sat Feb 3 16:43:07 2024 UTC
# Line 51  MC=13 Line 51  MC=13
51    
52  echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile  echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile
53  gcmDIR="MITgcm"  gcmDIR="MITgcm"
54  if test -e $gcmDIR/.git/config ; then : ; else  if test -e $gcmDIR/.git/config ; then
55    echo " No current clone ==> get a fresh clone" >> $logFile    if test ! -f git_Hash ; then
56    #rm -f git_Hash prevHash      echo " Missing file "git_Hash" ==> make one from clone '${gcmDIR}'" >> $logFile
57    if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi      ( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash )
58    git clone https://github.com/$git_repo/${git_code}.git $gcmDIR    fi
59    ( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash )  else
60        echo " No current clone ==> get a fresh clone" >> $logFile
61        #rm -f git_Hash prevHash
62        if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi
63        git clone https://github.com/$git_repo/${git_code}.git $gcmDIR
64        ( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash )
65  fi  fi
66    
67  #-------------------------------------------------------------------------------  #-------------------------------------------------------------------------------

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.22