We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad8c77b commit f66f7e4Copy full SHA for f66f7e4
bin/git-browse
@@ -2,7 +2,7 @@
2
3
if [[ $1 == "" ]]
4
then
5
- branch=$(git rev-parse --abbrev-ref HEAD)
+ branch=$(git rev-parse --abbrev-ref HEAD 2&> /dev/null)
6
remote=$(git config branch."${branch}".remote || echo "origin")
7
else
8
remote=$1
0 commit comments