|
@@ -306,8 +306,13 @@ echo "Clean Up"
|
306
|
306
|
echo "================================================================"
|
307
|
307
|
# Now revert the trunk so as not to break updates.
|
308
|
308
|
for updatedir in ${REVERTLIST}; do
|
309
|
|
- SVN=`which svn`
|
310
|
|
- ${SVN} revert ${updatedir}/*
|
|
309
|
+ if [ ${isSVN} -eq 1 ]; then
|
|
310
|
+ SVN=`which svn`
|
|
311
|
+ ${SVN} revert ${updatedir}/*
|
|
312
|
+ else
|
|
313
|
+ GIT=`which git`
|
|
314
|
+ ${GIT} checkout ${updatedir}
|
|
315
|
+ fi;
|
311
|
316
|
done;
|
312
|
317
|
|
313
|
318
|
if [ "1" = "${UPLOAD}" -a "" != "${TAGGED}" ]; then
|