Skip to content

Mixed use git may cause the repository cannot be accessed #118

@fcharlie

Description

@fcharlie

2016-11-16 12-02-25

Step

  1. Donwload https://github.com/bozaro/git-as-svn/releases/download/1.1.1/git-as-svn_1.1.1.zip
  2. unzip git-as-svn_1.1.1.zip to /path/to/git-as-svn
  3. vi config.example , change cacheConfig.path
  4. svn co svn://localhost/example
  5. git clone file:///path/to/example.git
  6. gitclonedir: touch hello &&git add hello &&git commit -m "add hello" &&git push
  7. svndir: svn up .
  8. gitclonedir: git reset commitid
  9. example.git: git gc --pure=now
  10. svndir: svn up .

So We can known, When A developer use git-as-svn on Gitlab Services,Many developers use the same warehouse, in part using SVN, in part using git, the team also have a PR, over time, will most likely be a developer cannot use svn to access this repository.

Simple strategy:

Remove cache from mapdb, remove refs on repository,after reload cache

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions