summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2021-04-27 21:17:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-28 07:47:18 (GMT)
commitcbb5de8b83f3abde8f9b37b0048bc00344b6709b (patch)
tree14484aa51ca577d204e235f1cf933b448ad077f4 /contrib
parente4f8baa88a0b294e1e2d91728e728e14574d1d87 (diff)
downloadgit-cbb5de8b83f3abde8f9b37b0048bc00344b6709b.zip
git-cbb5de8b83f3abde8f9b37b0048bc00344b6709b.tar.gz
git-cbb5de8b83f3abde8f9b37b0048bc00344b6709b.tar.bz2
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/subtree/git-subtree.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 0df8d1b..7fbd848 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -655,10 +655,6 @@ process_split_commit () {
}
cmd_add () {
- if test -e "$dir"
- then
- die "'$dir' already exists. Cannot add."
- fi
ensure_clean