commit dir and tex