git-open icon indicating copy to clipboard operation
git-open copied to clipboard

Pulls URL adding `tree/BRANCH`

Open CBroz1 opened this issue 2 years ago • 2 comments

Based on the README I would expect

git open -s pulls -p
> https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/pulls

but instead I'm seeing

git open -s pulls -p
> https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/tree/BRANCH/pulls

I installed via npm

npm install --global git-open 
npm view git-open | grep latest
> latest: 3.0.0

Is there some config I need to adjust?

CBroz1 avatar Dec 08 '22 19:12 CBroz1

I think this could be fixed by adding an elif to line 182, but someone could probably fine more elegant logic than I

elif [ "$suffix" ]; then
  TRUE

CBroz1 avatar Dec 08 '22 19:12 CBroz1

bump

xuoutput avatar Nov 24 '23 02:11 xuoutput