diff --git a/sunrise-commit b/sunrise-commit index 77281e9..b1f1484 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -69,11 +69,9 @@ find_repo() { # from the repo. is_whole_dir_removed() { if [ ${SC_VCS} = svn ]; then - local flist - flist=$(find "${1}" \( -name '.svn' -prune -o ! -name "${1}" -print \)) - [ -z "${flist}" ] + [ -z "$(svn status --depth=empty -- "${1}")" ] elif [ ${SC_VCS%-svn} = git ]; then - [ ! -e "${1}" ] + [ -z "$(git ls-files -c -- "${1}")" ] fi }