entry)) { error("The branch already exists."); } if (! is_valid_branch($branch)) { error("The provided branch is not an acceptable branch location."); } $revision = (int) $repo->entry->commit['revision']; // Execute info("Branching..."); if (! branch($source, $branch, $revision)) { error("Branch could not be created."); }