Skip to content

Releases: eikoshelev/git-sync

v2.0.0

19 Apr 06:41
Compare
Choose a tag to compare

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:

  1. Deprecation of flags and complete transition to configuration using environment variables
  2. Update to Go 1.19
  3. Update go-git to 5.6.1
  4. Switch to zap logger
  5. Code and project structure refactoring

v1.0.1

22 Nov 23:31
c2de803
Compare
Choose a tag to compare

Fix:

  • close open file (id_rsa ssh key) after read — defer file.Close()
  • change alpine docker base image from 3.8 to latest

v1.0.0 — first stable working version

21 Nov 09:43
a23035b
Compare
Choose a tag to compare

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.