From 1918135e8f23eb2447998b4bde4c36203df388f4 Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Wed, 8 Dec 2021 22:12:59 +0100 Subject: [PATCH] mirror.yml - mod git init --- .github/workflows/mirror.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index cd4d54b78..6f42e0602 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -59,19 +59,20 @@ jobs: ${{ runner.os }}-fhemsvnmirror3- - name: init mirror repository if it is not already a mirror - timeout-minutes: 1800 + timeout-minutes: 3800 run: | if [[ ! -d "${GITHUB_WORKSPACE}/src/fhem-mirror/.git" ]]; then git init "${GITHUB_WORKSPACE}/src/fhem-mirror" ; cd "${GITHUB_WORKSPACE}/src/fhem-mirror"; - git svn init --trunk=trunk --prefix=svn/ https://svn.fhem.de/fhem ; + git svn init --trunk=trunk --tags=tags --prefix=svn/ https://svn.fhem.de/fhem; git config --add svn-remote.svn.preserve-empty-dirs "true" ; git config --add svn-remote.svn.placeholder-filename ".gitkeep" ; git config --add svn.authorsfile "${GITHUB_WORKSPACE}/authors_merged.txt" ; # Run extra fetches after init, go pick up some base refs for the cache on first run only! - timeout 300 git svn -q fetch || timeout 300 git svn -q fetch || timeout 300 git svn -q fetch || true + timeout 3000 git svn -q fetch || timeout 300 git svn -q fetch || timeout 300 git svn -q fetch || true else echo "Current .git/config file content:"; + git svn init --trunk=trunk --tags=tags --prefix=svn/ https://svn.fhem.de/fhem; cat ${GITHUB_WORKSPACE}/src/fhem-mirror/.git/config; fi