diff --git a/CHANGELOG.md b/CHANGELOG.md index c5ab1e4d9834d463a1e4105d77ec14e855545387..76cbb93f1164607ddde0bd6cb95154b4b31fe815 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## gitlab-mirrors v0.2.9 + +* `git-mirrors.sh` major bugfix where working directory was not properly set before executing mirror updates. This caused the `cron` job to fail. + +--- ## gitlab-mirrors v0.2.8 * Fixed bug where `manage_gitlab_project.py` would attempt to move a project into the user namespace if the `gitlab_namespace` is equal to `gitlab_user`. No need to move a project from the same origin/destination group. diff --git a/git-mirrors.sh b/git-mirrors.sh index 96360196f8b58ae975581fa155edae47a582ea5e..8922eed14dc32b12cb142abea7c306d46cb7acf3 100755 --- a/git-mirrors.sh +++ b/git-mirrors.sh @@ -9,6 +9,8 @@ git_mirrors_dir="$(dirname "${0}")" . "${git_mirrors_dir}/lib/VERSION" . "${git_mirrors_dir}/lib/functions.sh" +cd "${git_mirrors_dir}" + STATUS=0 ls -1 "${repo_dir}/${gitlab_namespace}" | while read mirror;do diff --git a/lib/VERSION b/lib/VERSION index a255567e76931ae55893c070a7e7e929c7ad96ad..9aece0e144d692bafce5480ab58f43f8d40ee7f7 100644 --- a/lib/VERSION +++ b/lib/VERSION @@ -1 +1 @@ -VERSION="v0.2.8" +VERSION="v0.2.9"