fix: indexers ci-job git logic

This commit is contained in:
DavHau 2022-09-03 19:48:40 +02:00
parent 293e906ff2
commit 25fd6e1a63

View File

@ -95,13 +95,15 @@ in rec {
coreutils
git
gnugrep
openssh
])
''
flake=$(cat flake.nix)
flakeLock=$(cat flake.lock)
set -x
git fetch origin data
git checkout origin/data
git fetch origin data || :
git checkout origin/data || :
git branch -D data || :
git checkout -b data
# the flake should always be the one from the current main branch
rm -rf ./*
@ -149,13 +151,15 @@ in rec {
coreutils
git
gnugrep
openssh
])
''
flake=$(cat flake.nix)
flakeLock=$(cat flake.lock)
set -x
git fetch origin data
git checkout origin/data
git fetch origin data || :
git checkout origin/data || :
git branch -D data || :
git checkout -b data
# the flake should always be the one from the current main branch
rm -rf ./*