Create minute directory with commit time even in case of no paths to be committed

Create minute directory with commit time even in case of no paths to be committed
improve the log statement
fix test