git does not work if we write logs during commit