mirror of https://github.com/citusdata/citus.git
Added a workaround for a bug in git ls-files command. (#6487)
DESCRIPTION: Added a workaround for a bug in git ls-files command. https://community.garden.io/t/command-git-ls-files-ignored-failed-with-code-128/117 Option "--cached" is added to avoid this issue.pull/6483/head
commit
d7d5f0df3e
|
@ -5,7 +5,8 @@ source ci/ci_helpers.sh
|
|||
|
||||
# Remove all the ignored files from git tree, and error out
|
||||
# find all ignored files in git tree, and use quotation marks to prevent word splitting on filenames with spaces in them
|
||||
ignored_lines_in_git_tree=$(git ls-files --ignored --exclude-standard | sed 's/.*/"&"/')
|
||||
# NOTE: Option --cached is needed to avoid a bug in git ls-files command.
|
||||
ignored_lines_in_git_tree=$(git ls-files --ignored --cached --exclude-standard | sed 's/.*/"&"/')
|
||||
|
||||
if [[ -n $ignored_lines_in_git_tree ]]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue