We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05ce91f + f66f7e4 commit 68e6a15Copy full SHA for 68e6a15
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