Error deleting bare git repository

Issue #413 resolved
Former user created an issue

There is no .git folder as it is bare git repo, 'central repo on server'

{{{

2012-03-29 02:02:45.397 INFO [rhodecode.model.repo] Removing /var/data/git/repositories/bubbleit.git 2012-03-29 02:02:45.409 ERROR [rhodecode.model.repo] Traceback (most recent call last): File "/var/data/www/rhodecode-venv/lib/python2.6/site-packages/RhodeCode-1.3.4-py2.6.egg/rhodecode/model/repo.py", line 314, in delete self.delete_repo(repo) File "/var/data/www/rhodecode-venv/lib/python2.6/site-packages/RhodeCode-1.3.4-py2.6.egg/rhodecode/model/repo.py", line 495, in delete_repo os.path.join(rm_path, 'rm__.%s' % alias)) File "/usr/lib/python2.6/shutil.py", line 264, in move copy2(src, real_dst) File "/usr/lib/python2.6/shutil.py", line 99, in copy2 copyfile(src, dst) File "/usr/lib/python2.6/shutil.py", line 52, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No such file or directory: u'/var/data/git/repositories/bubbleit.git/.git'

2012-03-29 02:02:45.409 ERROR [rhodecode.controllers.admin.repos] Traceback (most recent call last): File "/var/data/www/rhodecode-venv/lib/python2.6/site-packages/RhodeCode-1.3.4-py2.6.egg/rhodecode/controllers/admin/repos.py", line 257, in delete repo_model.delete(repo) File "/var/data/www/rhodecode-venv/lib/python2.6/site-packages/RhodeCode-1.3.4-py2.6.egg/rhodecode/model/repo.py", line 314, in delete self.delete_repo(repo) File "/var/data/www/rhodecode-venv/lib/python2.6/site-packages/RhodeCode-1.3.4-py2.6.egg/rhodecode/model/repo.py", line 495, in delete_repo os.path.join(rm_path, 'rm__.%s' % alias)) File "/usr/lib/python2.6/shutil.py", line 264, in move copy2(src, real_dst) File "/usr/lib/python2.6/shutil.py", line 99, in copy2 copyfile(src, dst) File "/usr/lib/python2.6/shutil.py", line 52, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No such file or directory: u'/var/data/git/repositories/bubbleit.git/.git'

}}}

Comments (3)

  1. Marcin Kuzminski repo owner

    how did you get a bare repo there. Rhodecode doesn't create such repos. Can you explain how was it imported/added ?

  2. Log in to comment