Skip to content

Commit

Permalink
fix: fix stderr & stdout redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnj committed Apr 11, 2022
1 parent 11a2801 commit 9390d45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/git-browse-ci
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env bash

set -e -o pipefail

if [[ $1 == "" ]]
then
branch=$(git rev-parse --abbrev-ref HEAD 2&> /dev/null)
branch=$(git rev-parse --abbrev-ref HEAD &> /dev/null)
remote=$(git config branch."${branch}".remote || echo "origin")
else
remote=$1
Expand Down

0 comments on commit 9390d45

Please sign in to comment.