Releases: eikoshelev/git-sync
v2.0.0
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
v1.0.1
Fix:
- close open file (id_rsa ssh key) after read —
defer file.Close()
- change alpine docker base image from
3.8
tolatest
v1.0.0 — first stable working version
New:
Flag -tag
and environment variable GIT_SYNC_TAG
— working with tag from you remote repository.
NOTE: if the 'tag' flag/env is specified, the specified 'branch' flag/env will be ignored!
Change:
Flag -timer
and environment variable GIT_SYNC_WAIT
— now uses units instead of just seconds, for example: 1s, 2m, 3h, etc.
Also, some code refactor and bug fixes.