Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating wrong repo when deploying same repo multiple times with different branches #28

Closed
ADRFranklin opened this issue Mar 7, 2020 · 4 comments

Comments

@ADRFranklin
Copy link

ADRFranklin commented Mar 7, 2020

I am experiencing an issue, where pico seems to be updating the wrong repo when using branches.

It seems pico is able to correctly perform an update on the first start, but then after it continues to update the wrong branch (it calls the up event) and the service is restarted.

I think a test needs to be performed which pulls from the same repo, and has 2 different branches being used on it. This should make it clear what the problem is.

@ADRFranklin
Copy link
Author

I have also noticed that it is passing the env variables to the wrong repo too, not just updating the wrong repo.

@Southclaws
Copy link
Collaborator

I can't reproduce this. Is this specifically happening when you have multiple targets pointing at the same repository?

@ADRFranklin
Copy link
Author

Yes, this happens only when I have 2 instances of the same repo.

@Southclaws
Copy link
Collaborator

This might be a gitwatch issue then, two identical repos is undefined behaviour.

I think the solution would be to suffix the directory name with the branch name, separated by a _.

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

No branches or pull requests

2 participants