{"id":21881038,"url":"https://github.com/wtsi-hgi/git-common-sync","last_synced_at":"2025-03-22T00:43:36.822Z","repository":{"id":57434483,"uuid":"94917883","full_name":"wtsi-hgi/git-common-sync","owner":"wtsi-hgi","description":"A tool to synchronise common files between Git repositories","archived":false,"fork":false,"pushed_at":"2018-02-06T14:59:40.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-05T03:20:27.353Z","etag":null,"topics":["files","git","subrepos","synchronise","templates"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtsi-hgi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-20T17:31:21.000Z","updated_at":"2017-07-19T09:32:30.000Z","dependencies_parsed_at":"2022-08-27T23:11:29.307Z","dependency_job_id":null,"html_url":"https://github.com/wtsi-hgi/git-common-sync","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fgit-common-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fgit-common-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fgit-common-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fgit-common-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtsi-hgi","download_url":"https://codeload.github.com/wtsi-hgi/git-common-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890107,"owners_count":20527031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["files","git","subrepos","synchronise","templates"],"created_at":"2024-11-28T09:17:31.837Z","updated_at":"2025-03-22T00:43:36.796Z","avatar_url":"https://github.com/wtsi-hgi.png","language":"Python","funding_links":[],"categories":["Development"],"sub_categories":["Time Series"],"readme":"[![Build Status](https://travis-ci.org/wtsi-hgi/git-common-sync.svg?branch=master)](https://travis-ci.org/wtsi-hgi/git-common-sync)\n[![codecov](https://codecov.io/gh/wtsi-hgi/git-common-sync/branch/master/graph/badge.svg)](https://codecov.io/gh/wtsi-hgi/git-common-sync)\n[![PyPI version](https://badge.fury.io/py/gitcommonsync.svg)](https://badge.fury.io/py/gitcommonsync)\n\n# Git Common Sync\n_A tool to synchronise common files between Git repositories._\n\n\n## Features\n- Programmatically synchronises git repositories according to a specification.\n- Supports synchronisation of:\n    - Files and directories.\n    - Directories managed by [git-subrepo](https://github.com/ingydotnet/git-subrepo).\n    - Content generated using templates and project specific values.\n- Ansible support.\n\n\n## How to use\n### Prerequisites\n - git \u003e= 2.10.0\n - git-subrepo \u003e= 0.3.1\n - python \u003e= 3.6\n - rsync \u003e= 3.1.1\n - ansible \u003e= 2.4\n\n\n### Installation\n#### Ansible Module\n```yaml\n- gitcommonsync:\n    repository: http://www.example.com/repository.git\n    author_name: Ansible Synchroniser\n    author_email: team@example.com\n    key_file: /custom/id_rsa\n    files:\n      - src: /example/README.md\n        dest: README.md\n        overwrite: false\n      - src: /example/directory/\n        dest: config\n    templates:\n      - src: /example/ansible-groups.sh.j2\n        dest: ci/before_scripts.d/start.sh\n        variables:\n          message: \"Hello world\"\n        overwrite: true\n    subrepos:\n      - src: http://www.example.com/other-repository.git\n        dest: subrepos/other-repository\n        branch: master\n        overwrite: true\n```\n\n\n## Development\n### Setup\nInstall both library dependencies and the dependencies needed for testing:\n```bash\n$ pip install -q -r requirements.txt\n$ pip install -q -r test_requirements.txt\n```\n\n### Testing\nTo run the tests and generate a coverage report with unittest:\n```bash\n./test-runner.sh\n```\nIf you wish to run the tests inside a Docker container (recommended), build `Docker.test`.\n\n\n## Alternatives\n- Powerful but complex Ruby based alternative from the Puppet community: https://github.com/voxpupuli/modulesync.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtsi-hgi%2Fgit-common-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtsi-hgi%2Fgit-common-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtsi-hgi%2Fgit-common-sync/lists"}