forked from foundry-rs/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(foundryup): --pr (-P) argument to check out a PR (foundry-rs#1072)
Fixes foundry-rs#1054 + --pr/-P: checks out refs/pull/$PR/head branch * minor refactoring of the 'compile from sources' path: combine 'checking out for the 1st time' and 'checkout out for the nth time' flows. The latter used to do `git fetch && git reset --hard`, they now both do 'git fetch && git checkout'. There should be no good reason for you to have local changes in ~/.foundry, so there's no point in `git reset --hard`. Less code == better
- Loading branch information
1 parent
f106e4f
commit 0cd6c91
Showing
2 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters