[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [manual/translations] only checkout translation repo if there is no cached version
commit 3fc0e63bf8dc0fba98989209b7ad2a77bdb9eaba
Author: emma peel <emma.peel@xxxxxxxxxx>
Date: Sun Apr 25 07:02:40 2021 +0000
only checkout translation repo if there is no cached version
---
.gitlab-ci.yml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 686c6c2..1a9c9e7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,6 +21,13 @@ before_script:
- pip3 install wheel
- pip3 install lektor
- echo 'checking out translations'
+ - >
+ if [[ ! -d "i18n" ]]; then
+ cd i18n && git checkout tbmanual-contentspot && git reset --hard && git pull && cd ..
+ else
+ git clone https://git.torproject.org/translation.git i18n
+ cd i18n && git checkout tbmanual-contentspot && cd ..
+ fi
- rm -rf i18n
- git clone https://git.torproject.org/translation.git i18n
- cd i18n && git checkout tbmanual-contentspot && cd ..
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits