fixed bug that changed permissions of repos of same name but different type