mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
Update mirror.yml
use svn metadata
This commit is contained in:
parent
149016246c
commit
f507e48c39
3
.github/workflows/mirror.yml
vendored
3
.github/workflows/mirror.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
|||||||
if [[ ! -d "${GITHUB_WORKSPACE}/src/fhem-mirror/.git" ]]; then
|
if [[ ! -d "${GITHUB_WORKSPACE}/src/fhem-mirror/.git" ]]; then
|
||||||
git init "${GITHUB_WORKSPACE}/src/fhem-mirror" ;
|
git init "${GITHUB_WORKSPACE}/src/fhem-mirror" ;
|
||||||
cd "${GITHUB_WORKSPACE}/src/fhem-mirror";
|
cd "${GITHUB_WORKSPACE}/src/fhem-mirror";
|
||||||
git svn init --trunk=trunk --prefix=svn/ --no-metadata https://svn.fhem.de/fhem ;
|
git svn init --trunk=trunk --prefix=svn/ https://svn.fhem.de/fhem ;
|
||||||
git config --add svn-remote.svn.preserve-empty-dirs "true" ;
|
git config --add svn-remote.svn.preserve-empty-dirs "true" ;
|
||||||
git config --add svn-remote.svn.placeholder-filename ".gitkeep" ;
|
git config --add svn-remote.svn.placeholder-filename ".gitkeep" ;
|
||||||
git config --add svn.authorsfile "${GITHUB_WORKSPACE}/authors_merged.txt" ;
|
git config --add svn.authorsfile "${GITHUB_WORKSPACE}/authors_merged.txt" ;
|
||||||
@ -82,6 +82,7 @@ jobs:
|
|||||||
RET=0
|
RET=0
|
||||||
timeout 1200 git svn -q fetch || timeout 120 git svn -q fetch || RET=$?; # Limit each run to 20 minutes to not overload fhem.de servers and build cache in chunks
|
timeout 1200 git svn -q fetch || timeout 120 git svn -q fetch || RET=$?; # Limit each run to 20 minutes to not overload fhem.de servers and build cache in chunks
|
||||||
if [[ $RET == 0 ]]; then
|
if [[ $RET == 0 ]]; then
|
||||||
|
git config --unset svn-remote.svn.noMetadata;
|
||||||
git checkout -f "master"
|
git checkout -f "master"
|
||||||
#git rebase "remotes/svn/trunk"
|
#git rebase "remotes/svn/trunk"
|
||||||
git svn rebase "remotes/svn/trunk"
|
git svn rebase "remotes/svn/trunk"
|
||||||
|
Loading…
Reference in New Issue
Block a user