hhvm / packaging

The sources for how we have built the HHVM packages.
MIT License
64 stars 63 forks source link

Add fix instructions to incorrect origin message. #263

Closed fredemmott closed 2 years ago

fredemmott commented 2 years ago

Test Plan:

$ git remote set-url --push origin https://example.com
$ bin/promote-nightly-to-release 2021.11.18 4.136 --dry-run --force
----------------
--- Versions ---
----------------
Nightly build:
  2021.11.18
Previous version:
  4.135
Tagging version:
  4.136
----------------
[WARNING - FORCED] Run from master branch.
[WARNING - FORCED] Uncommitted changes.
[WARNING - FORCED] Git origin push URL is unsupported:
  - Current value: https://example.com
  - Required value: git@github.com:hhvm/packaging.git
  - Fix:
     git remote set-url --push origin git@github.com:hhvm/packaging.git
Dry run - exiting.
$ git remote set-url --push origin git@github.com:hhvm/packaging.git
$ bin/promote-nightly-to-release --dry-run 2021.11.18 4.136 --force
----------------
--- Versions ---
----------------
Nightly build:
  2021.11.18
Previous version:
  4.135
Tagging version:
  4.136
----------------
[WARNING - FORCED] Run from master branch.
[WARNING - FORCED] Uncommitted changes.
Dry run - exiting.