Revert path argument
This commit is contained in:
parent
e1290036ff
commit
c2259b12b2
|
|
@ -67,7 +67,7 @@ else
|
||||||
path_prefix="`git rev-parse --show-toplevel`/"
|
path_prefix="`git rev-parse --show-toplevel`/"
|
||||||
|
|
||||||
# Отбираем файлы, которые были изменены или созданы
|
# Отбираем файлы, которые были изменены или созданы
|
||||||
source_unstaged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} | grep "\.swift$")
|
source_unstaged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} ${SOURCE_DIR} | grep "\.swift$")
|
||||||
source_staged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} --cached ${SOURCE_DIR} | grep "\.swift$")
|
source_staged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} --cached ${SOURCE_DIR} | grep "\.swift$")
|
||||||
|
|
||||||
if [ ! -z "${source_unstaged_files}" ]; then
|
if [ ! -z "${source_unstaged_files}" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue