mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 15:36:16 -04:00
Merge c91fbaa4ed into 26396b38bb
This commit is contained in:
commit
6aa7a91a3f
8
git-open
8
git-open
|
|
@ -19,13 +19,7 @@ fi
|
|||
|
||||
# assume origin if not provided
|
||||
# fallback to upstream if neither is present.
|
||||
remote="origin"
|
||||
if [ ! -z "$1" ]
|
||||
then
|
||||
remote="$1"
|
||||
fi
|
||||
|
||||
remote_url="remote.${remote}.url"
|
||||
remote_url="remote.${1:-origin}.url"
|
||||
|
||||
giturl=$(git config --get $remote_url)
|
||||
if [ -z "$giturl" ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue