Skip to content

Commit

Permalink
Merge pull request #854 from bethesque/fix/git-browse-sed-on-mac
Browse files Browse the repository at this point in the history
fix(browse): update sed pattern to work on mac
  • Loading branch information
spacewander authored Jun 23, 2020
2 parents 2076ac9 + edf7b06 commit a0a32ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-browse
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

if [[ $remote_url = git@* ]]
then
url=$(echo $remote_url | sed -E -e 's/:/\//' -e 's/\.git$//' -e 's/\w*@(.*)/http:\/\/\1/')
url=$(echo $remote_url | sed -E -e 's/:/\//' -e 's/\.git$//' -e 's/.*@(.*)/http:\/\/\1/')
elif [[ $remote_url = http* ]]
then
url=${remote_url%.git}
Expand Down

0 comments on commit a0a32ab

Please sign in to comment.