neuropoly / data-management

Repo that deals with datalad aspects for internal use
4 stars 0 forks source link

Renaming internal repos #83

Open kousu opened 3 years ago

kousu commented 3 years ago

According to https://gitolite.com/gitolite/basic-admin.html#removingrenaming-a-repo you need to have ssh access to data in order to rename repos. I can see why they did this, for security and everything, but this is a little unfortunate.

Look into gitolite's wildrepo feature, optional commands and figure out if any of them allow renaming. If not, consider writing one (while being security-conscious about symlink etc attacks)

kousu commented 3 years ago

For the record, the current way to do this is

ssh root@data.neuro.polymtl.ca
sudo -u git -i
cd repositories/datasets/
mv $dataset.git $new_name.git

Maybe I should at least add that to the docs in the meantime?

alexfoias commented 3 years ago

tested the command from above and they worked.