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

Always set locale to english when running git #93

Open
wants to merge 1 commit into
base: master
from

Conversation

@Yannic
Copy link
Contributor

@Yannic Yannic commented Jun 21, 2019

Copybara runs may fail if users use a different locale than english
because we try to parse git's language dependent output.
This change fixes this bug by forcing git's output language always to be english.

@googlebot googlebot added the cla: yes label Jun 21, 2019
@Yannic
Copy link
Contributor Author

@Yannic Yannic commented Jul 18, 2019

@denian Can you review this?

Copy link
Collaborator

@denian denian left a comment

@denian Can you review this?

Hi Yannic, did you see my comment on the code regarding removing the original map? Could you fix that, please?

Thanks!

java/com/google/copybara/git/GitEnvironment.java Outdated Show resolved Hide resolved
Copy link
Contributor Author

@Yannic Yannic left a comment

Thanks for your review! I never got an email with your review and also didn't see it when I asked you to review. Maybe it was only saved as a draft?

Anyways, I fixed it now. ptal

java/com/google/copybara/git/GitEnvironment.java Outdated Show resolved Hide resolved
@denian
Copy link
Collaborator

@denian denian commented Jul 18, 2019

Thanks for your review! I never got an email with your review and also didn't see it when I asked you to review. Maybe it was only saved as a draft?

Anyways, I fixed it now. ptal

Ah, you're right. I had it as a draft. Sorry my bad :)

Added a minor comment. Also, could you squash the commits into a single one? It works when we import the PR to our internal repo.

Thanks!

@Yannic
Copy link
Contributor Author

@Yannic Yannic commented Jul 18, 2019

I'm sorry but I can't see your comment.
I'll squash it when addressing that comment.

@Yannic Yannic force-pushed the Yannic:git_set_locale_to_english branch from 7d6dde5 to 228ed14 Jul 18, 2019
@Yannic
Copy link
Contributor Author

@Yannic Yannic commented Jul 18, 2019

Thanks! Done & Squashed

@denian
Copy link
Collaborator

@denian denian commented Jul 18, 2019

Thank you! I'll import this into our internal repo and afterwards the PR will be closed.

Thanks!

Copybara runs may fail if users use a different locale than english
because we try to parse git's language dependent output.
This change fixes this bug by forcing git's output language always to be english.
@Yannic Yannic force-pushed the Yannic:git_set_locale_to_english branch from 228ed14 to 641a92d Dec 25, 2019
@Yannic
Copy link
Contributor Author

@Yannic Yannic commented Dec 25, 2019

@denian This somehow slipped through. Sorry for the extreme delay. Addressed all your comment now, ptal.

//cc @jasonzhouu @mikelalcon

@Yannic Yannic requested a review from mikelalcon Jan 20, 2020
@Yannic Yannic requested a review from hsudhof Feb 2, 2020
@Yannic
Copy link
Contributor Author

@Yannic Yannic commented Mar 20, 2020

Friendly ping?

@hsudhof Can you help review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.