Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm seems to install an older version of git-open #178

Open
karuppiah7890 opened this issue Feb 26, 2021 · 0 comments
Open

npm seems to install an older version of git-open #178

karuppiah7890 opened this issue Feb 26, 2021 · 0 comments

Comments

@karuppiah7890
Copy link

karuppiah7890 commented Feb 26, 2021

$ wget https://registry.npmjs.org/git-open/-/git-open-2.1.0.tgz

$ tar -xvzf git-open-2.1.0.tgz

$ head -n 25 package/git-open
#!/usr/bin/env bash

# Use git-sh-setup, similar to git-rebase
# https://www.kernel.org/pub/software/scm/git/docs/git-sh-setup.html
# https://github.com/git/git/blob/master/git-rebase.sh
# shellcheck disable=SC2034
OPTIONS_STUCKLONG=t
# shellcheck disable=SC2034
OPTIONS_KEEPDASHDASH=
# shellcheck disable=SC2034
OPTIONS_SPEC="\
git open [options]
git open [remote] [branch]
--
  Opens the GitHub page for a repo/branch in your browser.
  https://github.com/paulirish/git-open/

  Available options are
i,issue!      open issues page
"

# https://github.com/koalaman/shellcheck/wiki/SC1090
# shellcheck source=/dev/null
SUBDIRECTORY_OK='Yes' . "$(git --exec-path)/git-sh-setup"

Notice how the options present in the bash shell script are very less - just one, but in reality, the latest version of git-open has a lot of options, for example these are all the options I see when I install without npm

$ git open -h
usage: git open [options]
   or: git open [remote] [branch]

Opens the GitHub page for a repo/branch in your browser.

https://github.com/paulirish/git-open/

Available options are
    -c, --commit          open current commit
    -i, --issue           open issues page
    -s, --suffix ...      append this suffix
    -p, --print           just print the url

Can we update the npm package to have the correct binary? Please? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant