remove tmp file when branches are identical