Ignore submodules for format-checker (#1270)
author김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh0822.kim@samsung.com>
Fri, 18 May 2018 05:36:29 +0000 (14:36 +0900)
committer오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 18 May 2018 05:36:29 +0000 (14:36 +0900)
format-checker is failed when submodule is modified.
This is not what we want, so ignore submodule's state in format-checker.sh

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
scripts/command/format-checker.sh

index 5186b74..0b93c51 100755 (executable)
@@ -74,7 +74,7 @@ fi
 check_cpp_files $DIRECTORIES_TO_BE_TESTED
 check_python_files $DIRECTORIES_TO_BE_TESTED
 
-git diff > format.patch
+git diff --ignore-submodules > format.patch
 PATCHFILE_SIZE=$(stat -c%s format.patch)
 if [[ $PATCHFILE_SIZE -ne 0 ]]; then
     echo "[FAILED] Format checker failed and update code to follow convention."