From 99992e4db2ee7d70822ad9ae108c94fe24a81556 Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Thu, 15 Apr 2021 09:29:39 +0000
Subject: [PATCH] gitlab-ci.yml: exclude .repo in aggregated view

Currently we are trying to pack the entire .repo history, which fails on
a size-limit hook we've set up globally. Fix this by filtering out
.repo.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6d3e0f5..dc4e5ae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,7 +71,7 @@ deploy:
     - cd openharmony-readthedocs-aggregated
     - git checkout origin/main # only main for now - needs to match the rules
     - find . -maxdepth 1 -not -path ./.git -not -path . -exec rm -rf {} \;
-    - tar -c --dereference -C .. --exclude openharmony-readthedocs-aggregated --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x
+    - tar -c --dereference -C .. --exclude openharmony-readthedocs-aggregated --exclude ./.repo --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x
     # Commit and push back, if something changed.
     - |
       if [ -n "$(git status -s)" ]; then
-- 
GitLab