disable git when .git does not exist