Skip to content

Commit cbb5de8

Browse files
LukeShugitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e4f8baa commit cbb5de8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

contrib/subtree/git-subtree.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,10 +655,6 @@ process_split_commit () {
655655
}
656656

657657
cmd_add () {
658-
if test -e "$dir"
659-
then
660-
die "'$dir' already exists. Cannot add."
661-
fi
662658

663659
ensure_clean
664660

0 commit comments

Comments
 (0)