Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
d9a1e1cf
Unverified
Commit
d9a1e1cf
authored
Dec 04, 2023
by
clabby
Committed by
GitHub
Dec 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8403 from ethereum-optimism/refcell/foundry-update-fix
feat: Fix Foundry Update to reset Git Repo
parents
581b7a17
3577f593
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
install-foundry.sh
ops/scripts/install-foundry.sh
+12
-0
No files found.
ops/scripts/install-foundry.sh
View file @
d9a1e1cf
...
@@ -8,6 +8,18 @@ SHA=$(cat ./.foundryrc)
...
@@ -8,6 +8,18 @@ SHA=$(cat ./.foundryrc)
# Check if there is a nightly tag corresponding to the `.foundryrc` commit hash
# Check if there is a nightly tag corresponding to the `.foundryrc` commit hash
TAG
=
"nightly-
$SHA
"
TAG
=
"nightly-
$SHA
"
# If the foundry repository exists and a branch is checked out, we need to abort
# any changes inside ~/.foundry/foundry-rs/foundry. This is because foundryup will
# attempt to pull the latest changes from the remote repository, which will fail
# if there are any uncommitted changes.
if
[
-d
~/.foundry/foundry-rs/foundry
]
;
then
echo
"Foundry repository exists! Aborting any changes..."
cd
~/.foundry/foundry-rs/foundry
git reset
--hard
git clean
-fd
cd
-
fi
# Create a temporary directory
# Create a temporary directory
TMP_DIR
=
$(
mktemp
-d
)
TMP_DIR
=
$(
mktemp
-d
)
echo
"Created tempdir @
$TMP_DIR
"
echo
"Created tempdir @
$TMP_DIR
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment