{"id":20947831,"url":"https://github.com/alphahydrae/ansible-separate-git-dir-bug","last_synced_at":"2026-04-02T02:05:54.980Z","repository":{"id":66264868,"uuid":"170134613","full_name":"AlphaHydrae/ansible-separate-git-dir-bug","owner":"AlphaHydrae","description":"Setup to reproduce a bug with Ansible's Git module","archived":false,"fork":false,"pushed_at":"2019-02-11T14:12:31.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T04:42:56.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlphaHydrae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-11T13:37:07.000Z","updated_at":"2019-02-11T14:12:33.000Z","dependencies_parsed_at":"2023-06-12T20:15:06.957Z","dependency_job_id":null,"html_url":"https://github.com/AlphaHydrae/ansible-separate-git-dir-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlphaHydrae/ansible-separate-git-dir-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fansible-separate-git-dir-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fansible-separate-git-dir-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fansible-separate-git-dir-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fansible-separate-git-dir-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlphaHydrae","download_url":"https://codeload.github.com/AlphaHydrae/ansible-separate-git-dir-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fansible-separate-git-dir-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-19T00:13:25.411Z","updated_at":"2026-04-02T02:05:54.935Z","avatar_url":"https://github.com/AlphaHydrae.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible `separate_git_dir` bug\n\nRunning the `git` module with the `separate_git_dir` option fails and wipes out\nthe contents of the bare repository if the `dest` directory does not exist. It\nworks fine when both the `separate_git_dir` and the `dest` directories do not\nexist, or when both already exist.\n\nIssue: https://github.com/ansible/ansible/issues/52026\n\n## Requirements\n\n* [Vagrant](https://www.vagrantup.com/) 2.2.3\n  * [VirtualBox](https://www.virtualbox.org/) (or other provider supported by Vagrant)\n* [Ansible](https://www.ansible.com/) 2.7.6\n\n## Usage\n\nTo reproduce the bug:\n\n```bash\n# Set up the virtual machine (will run the playbook once with no error)\ngit clone https://github.com/AlphaHydrae/ansible-separate-git-dir-bug\ncd ansible-separate-git-dir-bug\nvagrant up\n\n# Run the playbook again (will produce the bug)\nvagrant provision\n```\n\nTo re-test:\n\n```bash\n# Clean up the directories and run the playbook twice\nvagrant ssh -c 'sudo rm -fr /tmp/checkout /tmp/repo' \u0026\u0026 vagrant provision \u0026\u0026 vagrant provision\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphahydrae%2Fansible-separate-git-dir-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphahydrae%2Fansible-separate-git-dir-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphahydrae%2Fansible-separate-git-dir-bug/lists"}