Skip to content

Added GIT_SYNC_ONE_TIME environment variable #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmerris-inmoment
Copy link

When true, fetch only happens once and program terminates.
When false, fetch happens continually, as before, using the GIT_SYNC_WAIT environment variable as a polling interval.

*For my team's usage, this was the only piece missing from git-sync, i.e. the ability to just pull once without polling. We are going to be using git-sync as part of a microservice orchestration tool which builds and runs repos. Thanks for porting this over from k8s!

When true, fetch only happens once and program terminates.
When false, fetch happens continually, as before, using the GIT_SYNC_WAIT environment variable as a polling interval.
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

Successfully merging this pull request may close these issues.

1 participant