{"id":16760545,"url":"https://github.com/bjoernricks/openvas-convert-to-git","last_synced_at":"2025-10-24T10:30:09.470Z","repository":{"id":141375907,"uuid":"103750390","full_name":"bjoernricks/openvas-convert-to-git","owner":"bjoernricks","description":"Convert OpenVAS SVN Repos to git","archived":false,"fork":false,"pushed_at":"2017-09-22T10:20:11.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T21:29:54.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjoernricks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-09-16T12:27:45.000Z","updated_at":"2017-09-16T12:29:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"68c7d417-382e-4f33-8fb5-53109e733d1a","html_url":"https://github.com/bjoernricks/openvas-convert-to-git","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernricks%2Fopenvas-convert-to-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernricks%2Fopenvas-convert-to-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernricks%2Fopenvas-convert-to-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjoernricks%2Fopenvas-convert-to-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjoernricks","download_url":"https://codeload.github.com/bjoernricks/openvas-convert-to-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848178,"owners_count":20357503,"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":[],"created_at":"2024-10-13T04:23:51.353Z","updated_at":"2025-10-24T10:30:09.416Z","avatar_url":"https://github.com/bjoernricks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scripts to convert OpenVAS SVN repos to git\n\nThe available scripts are using git-svn for converting the svn repositories to\ngit. This procedure doesn't require file access to the svn server. To install\ngit-svn on Debian based systems run\n\n```\napt-get install git-svn\n```\n\n## Steps to convert an OpenVAS module to a git repository\n\n### 1. Create a new config\n\n  ```sh\n  $EDITOR \u003cconfig file\u003e\n  ```\n\n  Add the following variables to the config file\n\n  ```sh\n  USERNAME=\u003cusername for svn repo access\u003e\n  MODULE=\u003cmodule name e.g. openvas-manager\u003e\n  TAGS_MODULE=$MODULE # name may be different from $MODULE\n  BRANCHES_MODULE=$MODULE # name may be different from $MODULE\n  GIT_REPO_PATH=\u003cpath to created git repo\u003e # e.g /path/to/manager-git\n  ```\n\n  See [Example Config](config.example) for details and options.\n\n### 2. Run init script\n\n  ```\n  /path/to/convert-repo/init.sh /path/to/\u003cconfig file\u003e\n  ```\n\n### 3. Update created authors file\n\n  If you are not already using an existing authors transform file the svn\n  user names should be mapped to real names.\n\n  ```sh\n  cd \u003cpath to created git repo\u003e\n  $EDITOR authors-transform-\u003cmodule name\u003e.txt\n  ```\n\n### 4. Check and adjust generated git config\n\n  Check the generated settings at the git config for svn tags and branches. It\n  is possible to user wildcards for branches and tags instead to list all. Also\n  you may add several branches and tags variables.\n\n  ```sh\n  cd \u003cpath to created git repo\u003e\n  $EDITOR .git/config\n  ```\n\n### 5. Run\n\n  ```sh\n  /path/to/convert-repo/convert.sh /path/to/\u003cconfig file\u003e\n  ```\n\n### 6. Finished\n\n  Afterwards you will get to repos `$GIT_REPO_PATH` and `$GIT_REPO_PATH.git`\n  The `$GIT_REPO_PATH.git` path contains a bare repository that can be used as a\n  master.\n\n### 7. Optional cleanup\n\n  Sometimes git-svn creates xyz@revsion tags and branches during conversion. You\n  can delete those branches and tags.\n\n  ```sh\n  source \u003cpath to config file\u003e\n  cd $GIT_REPO_PATH.git\n  /path/to/convert-repo/delete-at-refs.sh\n  ```\n\n  Also some older branches may use `-` in their version. These branches should\n  be renamed.\n  ```sh\n  git branch -m \u003cname\u003e-\u003cx\u003e-\u003cy\u003e \u003cname\u003e-\u003cx\u003e.\u003cy\u003e\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjoernricks%2Fopenvas-convert-to-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjoernricks%2Fopenvas-convert-to-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjoernricks%2Fopenvas-convert-to-git/lists"}