diff options
-rw-r--r-- | git.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -605,9 +605,9 @@ int create_pull_request_branch(pull_request *pr, index_t *idx, git_repo *repo) { } else { /* Create the PR branch by just using the PR branch index. */ char *pr_branch = pr_branch_index; - /* Are we using a remote branch, and is the name of that branch non-empty? */ - if (pr->pr_type && !is_empty(pr->branch->name)) { - /* Append the branch name to the PR branch index. */ + /* Are we using a remote branch? */ + if (pr->pr_type) { + /* Append the branch name to the PR branch index, if it isn't empty. */ pr_branch = dir_path_name((const char *)pr_branch_index, pr->branch->name); /* Free the PR branch index */ free(pr_branch_index); |