Skip to content

Commit 2b40fdd

Browse files
committed
Merge branch 'tq/branch-create-wo-branch-get' into maint
Code clean-up. * tq/branch-create-wo-branch-get: builtin/branch.c: remove useless branch_get
2 parents c2d6378 + 8d20081 commit 2b40fdd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

builtin/branch.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,6 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
828828
git_config_set_multivar(buf.buf, NULL, NULL, 1);
829829
strbuf_release(&buf);
830830
} else if (argc > 0 && argc <= 2) {
831-
struct branch *branch = branch_get(argv[0]);
832-
833-
if (!branch)
834-
die(_("no such branch '%s'"), argv[0]);
835-
836831
if (filter.kind != FILTER_REFS_BRANCHES)
837832
die(_("-a and -r options to 'git branch' do not make sense with a branch name"));
838833

0 commit comments

Comments
 (0)