From ca3b6e6029fca6925fca8c33f8b320d75c632af0 Mon Sep 17 00:00:00 2001
From: xdvora19 <xdvora19@fi.muni.cz>
Date: Thu, 2 May 2024 16:13:15 +0200
Subject: [PATCH] fix utilities.sh downloading correct branhces

---
 .gitmodules  | 2 ++
 utilities.sh | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index 48a035d..bfedea4 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,8 @@
 [submodule "backend-submodule"]
 	path = backend
 	url = ../backend
+	branch = main
 [submodule "frontend"]
 	path = frontend
 	url = ../frontend
+	branch = master
diff --git a/utilities.sh b/utilities.sh
index 2797c0f..0e4be91 100755
--- a/utilities.sh
+++ b/utilities.sh
@@ -1,10 +1,10 @@
 #!/usr/bin/env bash
 git submodule init
-git submodule foreach git pull origin main
+git submodule update --remote
 
 mkdir -p docs/tech
 cp ./backend/definitions/README.md ./docs/tech/architecture/definitions.md
 cp ./backend/CHANGELOG.md ./docs/tech/CHANGELOG.md
-cp ./backend/README.md ./docs/tech/installation/back-README.md
+cp ./backend/INSTALATION.md ./docs/tech/installation/back-README.md
 cp ./frontend/README.md ./docs/tech/installation/front-README.md
 cp ./backend/openapi.yml ./docs/tech/api/openapi.yml
-- 
GitLab