Skip to content

Commit d4591b9

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

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
@@ -809,11 +809,6 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
809809
git_config_set_multivar(buf.buf, NULL, NULL, 1);
810810
strbuf_release(&buf);
811811
} else if (argc > 0 && argc <= 2) {
812-
struct branch *branch = branch_get(argv[0]);
813-
814-
if (!branch)
815-
die(_("no such branch '%s'"), argv[0]);
816-
817812
if (filter.kind != FILTER_REFS_BRANCHES)
818813
die(_("-a and -r options to 'git branch' do not make sense with a branch name"));
819814

0 commit comments

Comments
 (0)