Warning
The use of flags is deprecated! All configuration using environment variables only!
New: local repository status — when starting git-sync, check the repository status and set settings to warn about possible problems in operation if necessary, for example, if there are uncommitted changes in the local repository and the GSYNC_FORCE_PULL
option is set to false
. In the logs it will look like this:
{"level":"warn","ts":"2023-04-19T10:29:09+03:00","msg":"one or more files have modified status in /your/local/repo, GSYNC_FORCE_PULL option is 'false', remote repository updates will not be pulled"}
Changes:
- Deprecation of flags and complete transition to configuration using environment variables
- Update to Go 1.19
- Update go-git to 5.6.1
- Switch to zap logger
- Code and project structure refactoring