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.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARCe730ececbc96: Examine upstream path instead of assuming "origin"
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.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- to-upstream/uri-from-upstream-remote
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 8958 Build 10516: arc lint + arc unit
Event Timeline
src/repository/api/ArcanistGitAPI.php | ||
---|---|---|
543 | For consistency, prefer to write variables in strings as {$variable} instead of $variable: "remote.{$remote}.url" There's no behavioral difference, this syntax is just a little more explicit and consistent within the project. | |
548 | We could maybe do this properly now, but whatever. I think the logic is fine as-is. |