Enabling statistics on subdirectory-based repo appears to DELETE the repo

Issue #187 resolved
Former user created an issue

Enabling statistics on a repo based in a subdirectory appears to //delete////// the repo... but doesn't (it's just moved). This very nearly scared the crap out of me when it happened the first time.

To reproduce:

Have repo (possibly existing) in 'dev/project' ('dev' is a directory and 'project' is the repo)

Enable statistics on it via RhodeCode 1.2beta

Panic and start scouring backups when you see that the 'project' repo has been deleted from your disk!

Notice this in the logs: [rhodecode.model.repo] renaming repo from dev/project to project

Be incredibly relieved that it was just moved and not deleted

But it still shouldn't be moved.

Comments (3)

  1. Marcin Kuzminski repo owner

    I'll look into that bug, sound like choosen group is not taken and it moves the repo to non group.

    FYI RhodeCode never deletes any repos, even if you hit delete it just renames a directory to special name. It can be manually reverted. I generally have a no break policy when it comes to this type of software.

  2. Log in to comment