Skip to content

Commit

Permalink
Better prep (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored May 5, 2024
1 parent d350490 commit ce9e050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -1219,15 +1219,15 @@ update() {
fi
# This preps for a removal of ext-network.yml in a future update, after Pectra
${__as_owner} cp ext-network.yml ext-network.yml.bak
if git ls-files -v | grep -q "^h" | grep -q "ext-network.yml"; then
if git ls-files -v | grep -q "^h" | grep -q "ext-network.yml$"; then
${__as_owner} git update-index --no-assume-unchanged ext-network.yml
fi
${__as_owner} git restore ext-network.yml
${__as_owner} git pull origin main
${__as_owner} cp ext-network.yml.bak ext-network.yml
# This will be removed when ext-network.yml gets removed, and after the closing fi
# it'll do --no-assume-unchanged again
${__as_owner} git update-index --assume-unchanged ext-network.yml
if git ls-files -v | grep -q "ext-network.yml$"; then
${__as_owner} git update-index --assume-unchanged ext-network.yml
fi
else
export ETHDPINNED="${value}"
${__as_owner} git fetch --tags
Expand Down

0 comments on commit ce9e050

Please sign in to comment.