Skip to content

Commit

Permalink
git/pull: allow arbitrary upstreams with -u
Browse files Browse the repository at this point in the history
This used to work, but probably got broken when moving
to aux/getflags. Bring it back.
  • Loading branch information
oridb committed Nov 15, 2020
1 parent 398a2a4 commit c9a4dbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pull
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ if(~ $allbranch 1)
branch=''

if(~ $#upstream 0)
upstream=origin
remote=`{git/conf 'remote "'$upstream'".url'}
remote=`{git/conf 'remote "origin".url'}
if not
remote=`{git/conf 'remote "'$upstream'".url'}
if(~ $#remote 0)
remote=$upstream
if(~ $#remote 0)
die 'no remote to pull from'
Expand Down

0 comments on commit c9a4dbe

Please sign in to comment.