func closeAll(dir1, dir2 string, clog *commit.Logger) { clog.Close() os.RemoveAll(dir2) os.RemoveAll(dir1) }