Committing to two copies of the same repo where only one sees changes of the other?

Dave Can November 20, 2017

I'm in an odd situation where we're getting commits from the repo on someone else's host, but we were told that there was no reason for our commits to merge in with their copy of the repo... which to me opens up the possibility of avoidable refactors, desynchronization, and merge conflicts, mostly on our side, and possibly repetitively.

Can someone explain what the benefits or most likely detriments are? I technically do have access to make a pull request to their repo but I don't understand the reticence or refusal to allow us to give our commits to them.

2 answers

1 accepted

0 votes
Answer accepted
Dave Can November 27, 2017

Seems like the answer is that both parties should see each other's source code.

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2017

 

Hi Dave, sending pull requests to someone else's repo is a very common practice so I can not really think of anything against it.

Maybe they want to control the code that comes into their repo, but they could enable reviewers for that, so the pull will need to be approved by certain people before it gets merged. 

I'm afraid you'll get a better response if you ask them directly, as they could have some reasons, or maybe be unaware on some of the features they could use to control the code.

Let us know if you need anything else!

Cheers,

Ana

Dave Can November 24, 2017

When I ask them they simply ask why they should get our commits. When I explain they say it doesn't matter. They did give us access once but then restricted it after pulling in our commits and deploying them to their site. It's really weird.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2017

Hi Dave, I'm not sure I understand correctly, it looks confusing. 

My understanding right now is that you got a copy of someone else's repo, then you tried to push your commits to their copy of the repo, but they said that they don't want your commits. Is this right? In this case, they should restrict access to their repo, and then explain to you how would they like to collaborate with you, in case that was the purpose of sharing the repo with you.

If they already tried restricting the access but you're still able to push your code to their repo, then there's a problem: they either didn't do it correctly or there's some kind of issue with the permissions. We could have a look at that but we'd need the name of the accounts and the name of the repos. 

Cheers!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events