Skip to content

Commit a0a32ab

Browse files
authored
Merge pull request #854 from bethesque/fix/git-browse-sed-on-mac
fix(browse): update sed pattern to work on mac
2 parents 2076ac9 + edf7b06 commit a0a32ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-browse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222

2323
if [[ $remote_url = git@* ]]
2424
then
25-
url=$(echo $remote_url | sed -E -e 's/:/\//' -e 's/\.git$//' -e 's/\w*@(.*)/http:\/\/\1/')
25+
url=$(echo $remote_url | sed -E -e 's/:/\//' -e 's/\.git$//' -e 's/.*@(.*)/http:\/\/\1/')
2626
elif [[ $remote_url = http* ]]
2727
then
2828
url=${remote_url%.git}

0 commit comments

Comments
 (0)