subtree: remove duplicate check
authorLuke Shumaker <lukeshu@datawire.io>
Tue, 27 Apr 2021 21:17:40 +0000 (15:17 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Apr 2021 07:47:18 +0000 (16:47 +0900)
commitcbb5de8b83f3abde8f9b37b0048bc00344b6709b
tree14484aa51ca577d204e235f1cf933b448ad077f4
parente4f8baa88a0b294e1e2d91728e728e14574d1d87
subtree: remove duplicate check

`cmd_add` starts with a check that the directory doesn't yet exist.
However, the `main` function performs the exact same check before
calling `cmd_add`.  So remove the check from `cmd_add`.

Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh