-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitWorkingTree: First try to use the pull remote of the current branch
Git supports multiple remotes per working tree. Previously, simply the first remote in the order reported by Git was used, but this is not necessarily the remote that we want. We are interested in where the code in the working tree comes from, so first try to use the remote that the currently checked out branch pulls from, and only afterwards fall back to "origin", if present, or the first other remote. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch-si.com>
- Loading branch information
1 parent
920ce20
commit 7de18ea
Showing
1 changed file
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters