]> khamidou — GitHub mirrors - arcanist.git/commit
Examine upstream path instead of assuming "origin"
authorAlex Vandiver <alexmv@dropbox.com>
Fri, 20 Nov 2015 06:28:02 +0000 (22:28 -0800)
committerAlex Vandiver <alexmv@dropbox.com>
Mon, 23 Nov 2015 18:29:20 +0000 (10:29 -0800)
commite730ececbc965b3363ebec29d69e29b6ff508ef7
tree6e2eed9a6fa96af08048d7a0b0f9c30e4f5ddd2e
parentb32149495b852d846127d002a7131fc67d4fbd47
Examine upstream path instead of assuming "origin"

Summary:
Instead of blindly assuming that "origin" is the repository that
arcanist should communicate with, use the remote that is configured
for the branch in git.

Test Plan:
Used `arc which` with a branch with no upstream, an
origin/master upstream, and an upstream/master upstream -- the last of
which is being used to create and land this diff.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: joshuaspence, Korvin

Differential Revision: https://secure.phabricator.com/D14530
src/repository/api/ArcanistGitAPI.php