log to current dir
Fix crash for small repository