Skip to content

Commit

Permalink
Merge pull request #105 from pulsar-edit/fix-install-b-install-t-flag…
Browse files Browse the repository at this point in the history
…-usage-help-text

src: Fix usage/help text (and error message) for -b/-t flags for ppm install
  • Loading branch information
confused-Techie authored Dec 14, 2023
2 parents 77dd119 + ad9d31a commit 2ecd97f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class Install extends Command {
Usage: ppm install [<package_name>...]
ppm install <package_name>@<package_version>
ppm install <git_remote> [-b <branch_or_tag_or_commit>]
ppm install <github_username>/<github_project> [-b <branch_or_tag_or_commit>]
ppm install <git_remote> [-b <branch_or_tag>]
ppm install <github_username>/<github_project> [-b <branch_or_tag>]
ppm install --packages-file my-packages.txt
ppm i (with any of the previous argument usage)
Expand Down Expand Up @@ -565,7 +565,7 @@ Run ppm -v after installing Git to see what version has been detected.\
const repo = Git.open(cloneDir);
data.sha = version;
const checked = repo.checkoutRef(`refs/tags/${version}`, false) || repo.checkoutReference(version, false);
if (!checked) { throw `Can't find the branch, tag, or commit referenced by ${version}`; }
if (!checked) { throw `Can't find the branch or tag referenced by ${version}`; }
} else {
const sha = this.getRepositoryHeadSha(cloneDir);
data.sha = sha;
Expand Down

0 comments on commit 2ecd97f

Please sign in to comment.