Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot clone or PR to repos that I already own

Lawrence Siden
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2018

We are converting our project to Git and OneStash.  We want to each push and pull to our own personal repos, but share a staging repo that we can both PR to and merge to after code review. 

We are using OneStash, which authenticates us through our company's authentication directory, so we cannot just create a new account for the staging without requesting it.  To save time, my partner created a new repo: MyProject-staging and initialized it with our current codebase.  I can clone from my-partner/MyProject-staging to get started with my own personal repo, but the BitBucket UI will not allow him to fork from his own repo.  Instead, we had to initialize his own repo by hand (he's new to Git so I'm helping him).

Similarly, I can create PR's setting my-partner/MyProject-staging as the target repo, but my partner cannot do the same (since he already owns the target repo).

Do we really need to request a new account from our IT department, just so that we can share a staging repo?  That might be difficult.

1 answer

0 votes
Lawrence Siden
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2018

I think I found the answer to my own question.  I'm guessing that OneStash will let you select another repo as a target for a PR only if your current repo was forked from it.  When setting up, my partner cloned our staging repo from his own repo.  So OneStash won't let him submit PR's because it thinks that the staging repo is downstream, not upstream.  I'll help him get that sorted out by making sure everything he has so far is merged into staging, then wipe or rename his current repo, then fork it again from staging so that OneStash will know that his repo is downstream from staging and allow him to submit PRs  to staging.  Mystery solved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events