fix for bare repos