Skip to content

Commit 9c45db8

Browse files
committed
Merge branch 'development' release 0.5.3
2 parents 69274d8 + d9c8fde commit 9c45db8

File tree

4 files changed

+30
-17
lines changed

4 files changed

+30
-17
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
---
2+
## gitlab-mirrors v0.5.3
3+
4+
* Bugfix `git-mirrors.sh` while loop executing in a subshell and the value of
5+
`STATUS` being lost. See [PR #92][#92].
6+
7+
[#92]: https://github.com/samrocketman/gitlab-mirrors/pull/92
8+
19
---
210
## gitlab-mirrors v0.5.2
311

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# gitlab-mirrors
22

33
The [gitlab-mirrors](https://github.com/samrocketman/gitlab-mirrors) project is
4-
designed to fill in a feature which is currently
5-
[missing from GitLab][mirror-missing]: the ability to mirror remote
6-
repositories. gitlab-mirrors creates read only copies of remote repositories in
7-
gitlab. It provides a CLI management interface for managing the mirrored
8-
repositories (e.g. add, delete, update) so that an admin may regularly update
9-
all mirrors using `crontab`. It operates by interacting with the
10-
[GitLab API][gitlab-api] using [python-gitlab3][python-gitlab3]. Also, check
11-
out this cool [puppet module][puppet] for installing and configuring
12-
gitlab-mirrors.
13-
4+
designed to fill in a feature which is currently [missing from
5+
GitLab][mirror-missing]: the ability to mirror remote repositories.
6+
gitlab-mirrors creates read only copies of remote repositories in gitlab. It
7+
provides a CLI management interface for managing the mirrored repositories (e.g.
8+
add, delete, update) so that an admin may regularly update all mirrors using
9+
`crontab`. It operates by interacting with the [GitLab API][gitlab-api] using
10+
[python-gitlab3][python-gitlab3].
1411

1512
## Features
1613

@@ -46,13 +43,18 @@ gitlab-mirrors.
4643

4744
*Note: if you are upgrading then see `docs/upgrade` for notes on upgrading.*
4845

46+
---
47+
# Other helpful implementations
48+
49+
* [Puppet module][gm-puppet] for installing and configuring gitlab-mirrors.
50+
* [Docker container][gm-docker] for mirroring repositories.
4951

5052
---
5153
# Get help
5254

53-
There are a couple ways you can try to get help. You can
54-
[file an issue][issues]. You can also join the `#gitlab` IRC channel at
55-
freenode.net and direct your questions to user `sag47`.
55+
There are a couple ways you can try to get help. You can [file an
56+
issue][issues]. You can also join the `#gitlab` IRC channel at freenode.net and
57+
direct your questions to user `sag47`.
5658

5759
## IRC Etiquette
5860

@@ -81,7 +83,8 @@ Created by Sam Gleske under [MIT License](LICENSE).
8183
* Fixed project transfer bug #78 [Corey Osman](https://github.com/logicminds)
8284

8385
[gitlab-api]: http://api.gitlab.org/
86+
[gm-docker]: https://github.com/Klowner/docker-gitlab-mirrors
87+
[gm-puppet]: https://github.com/logicminds/gitlab_mirrors
8488
[issues]: https://github.com/samrocketman/gitlab-mirrors/issues
8589
[mirror-missing]: http://feedback.gitlab.com/forums/176466-general/suggestions/4286666-mirror-git-svn-into-repo-
86-
[puppet]: https://github.com/logicminds/gitlab_mirrors
8790
[python-gitlab3]: https://github.com/alexvh/python-gitlab3

git-mirrors.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ cd "${git_mirrors_dir}"
1717

1818
STATUS=0
1919

20-
ls -1 "${repo_dir}/${gitlab_namespace}" | while read mirror;do
20+
while read mirror
21+
do
2122
if ! ./update_mirror.sh "${mirror}" >> ${git_mirrors_dir}/cron.log 2>&1 ;then
2223
red_echo "Error: ./update_mirror.sh ${mirror} (more information in ${git_mirrors_dir}/cron.log)" 1>&2
2324
STATUS=1
2425
fi
25-
done
26+
done <<< "$(ls -1 "${repo_dir}/${gitlab_namespace}")"
27+
2628
exit ${STATUS}

lib/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION="v0.5.2"
1+
VERSION="v0.5.3"

0 commit comments

Comments
 (0)