iiab / iiab-factory

Tools for deploying IIAB, installing IIAB, cloning IIAB, refining Content Packs, etc.
http://internet-in-a-box.org
GNU General Public License v2.0
13 stars 17 forks source link

Ask Git to track remote + branch when auto-pulling PR's (--set-upstream) #225

Closed holta closed 2 years ago

holta commented 2 years ago

To help with iiab-summary and iiab-diagnostics.

As discussed at:

Alongside similar efforts like:

holta commented 2 years ago

This PR is really overkill, given that devs not uncommonly want to push/pull to their own upstream (rather than the PR's original upstream).

Still, let's give this a shot, to see how this goes.

(Consider this a hack for now. That we can revert later if there's a better way, which there might possibly be in future.)

And just a reminder that git pull --set-upstream does little more than set both these variables in .git/config :

branch.<actual-branch-name>.remote
branch.<actual-branch-name>.merge