| 149 |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
| 150 |
exit 3 |
exit 3 |
| 151 |
fi |
fi |
| 152 |
|
( cd $git_code ; git checkout master -- . ) |
| 153 |
echo "Updating current clone ( $git_other ) ..." |
echo "Updating current clone ( $git_other ) ..." |
| 154 |
( cd $git_other ; git pull ) |
( cd $git_other ; git pull ) |
| 155 |
retVal=$? |
retVal=$? |
| 159 |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
| 160 |
exit 3 |
exit 3 |
| 161 |
fi |
fi |
| 162 |
( cd $git_other ; git checkout master ) |
( cd $git_other ; git checkout master -- . ) |
| 163 |
fi |
fi |
| 164 |
#---- making a new working copy: MITgcm_today |
#---- making a new working copy: MITgcm_today |
|
( cd $git_code ; git checkout master ) |
|
| 165 |
rsync -a $git_code/ MITgcm_today --exclude '.git' |
rsync -a $git_code/ MITgcm_today --exclude '.git' |
| 166 |
if test $sepDir = 0 ; then |
if test $sepDir = 0 ; then |
| 167 |
echo -n " make a local copy of $git_other in MITgcm_today ..." | tee -a $tdir/output_$tt |
echo -n " make a local copy of $git_other in MITgcm_today ..." | tee -a $tdir/output_$tt |