Please sign in to comment.
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 <email@example.com>
- Loading branch information...
Showing with 19 additions and 3 deletions.