very_good_cli
very_good_cli copied to clipboard
fix: Reachable dependency with get-url
Description
At Git::reachable when checking the ls-remote
it doesn't pass --get-url
which can be useful with git config overrides (such as insteadOf
).
Steps To Reproduce
- Add a rewrite: `git config --global url."[email protected]:ORG/repo.git".insteadOf "[email protected]:ORG/repo.git"
- Attempt to pull dependencies:
very_good packages get
- Notice that it doesn't respect rewrite
- Attempt to pull dependencies:
flutter pub get
- Respects rewrite
Expected Behavior
If --get-url
is passed the reachable
check will resolve similarly to the actual pull