The file is closed when the branch is created, I think the file has to be open.