Record branch name in instance metadata.