Don't work with Bitbucket pull requests
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 18.1k
- Forks
- 1.2k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 1
Description
My repository is hosted in Bitbucket and it seems that I can't use git pr to clone a pull request. I think the problem is that git pr try to look at refs/pull/289/head while it should be refs/pull-requests/289/head.
Even though I paste the url git pr https://bitbucket.com/project/project/pull-requests/289 -v, it doesn't understand.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the git pr command entry point and inspect how pull-request URLs are parsed and how refs are constructed. Reproduce the Bitbucket example from the issue, then verify that cloning pull request 289 works with Bitbucket's refs/pull-requests/289/head format.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100