Skip to content

Use remote tracking branch for base when detecting commits for pr create#717

Merged
mislav merged 2 commits into
masterfrom
improve-finding-commits
Mar 31, 2020
Merged

Use remote tracking branch for base when detecting commits for pr create#717
mislav merged 2 commits into
masterfrom
improve-finding-commits

Conversation

@mislav

@mislav mislav commented Mar 31, 2020

Copy link
Copy Markdown
Contributor

This is to avoid errors when a local base branch is missing or out of date.

Fixes #710, closes #713

mislav added 2 commits March 31, 2020 13:32
…eate`

This is to avoid errors when a local base branch is missing or out of
date.
This code was put in place in preparation for a feature that never
shipped. Namely, we wanted to use the commit hash for the base branch so
we can get an accurate `git log` involving the changes in a pull
request. However, getting the commit hash from API is not the way to go
because the latest commit might not be available in the person's local
repository, and using a local tracking branch for base such as
`origin/master` works quite well in most cases without dereferencing it.
@mislav mislav merged commit e0ba3fd into master Mar 31, 2020
@mislav mislav deleted the improve-finding-commits branch March 31, 2020 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh pr create attempts to lookup commits from local master

2 participants