diff --git a/sunrise-commit b/sunrise-commit index cabb171..7128ec1 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -68,7 +68,7 @@ find_repo() { # from the repo. is_whole_dir_removed() { if [ ${SC_VCS} = svn ]; then - [ -z "$(svn status --depth=empty -- "${1}")" ] + [ "$(svn status --depth=empty -- "${1}" | wc -l)" = 1 ] elif [ ${SC_VCS%-svn} = git ]; then [ -z "$(git ls-files -c -- "${1}")" ] elif [ ${SC_VCS} = hg ]; then