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>

Luke Shumaker committed Apr 27, 2021 at 15:17 UTC cbb5de8b83f3abde8f9b37b0048bc00344b6709b
1 file changed -4
contrib/subtree/git-subtree.sh
-4
@@ -655,10 +655,6 @@ process_split_commit () {
655 }
656
657 cmd_add () {
658 - if test -e "$dir"
659 - then
660 - die "'$dir' already exists. Cannot add."
661 - fi
658
659 ensure_clean
660