mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fix: fix stderr & stdout redirect
This commit is contained in:
parent
11a2801231
commit
9390d450aa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue