[obs-commits] [openSUSE/open-build-service] 340333: Fix checking for diffs between structure.sql files

Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 340333ba4cffa356c7d7efbda533d6058c626766 https://github.com/openSUSE/open-build-service/commit/340333ba4cffa356c7d7ef... Author: Eduardo Navarro <enavarro@suse.com> Date: 2020-04-27 (Mon, 27 Apr 2020) Changed paths: M src/api/lib/tasks/databases.rake Log Message: ----------- Fix checking for diffs between structure.sql files Add `--exit-code` option to `git diff` command. Otherwise `git diff` always returns 0, and never throws an error exit code. See documentation at: https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---exit-code Commit: ff59981cb19bf99011a966872b6266f72c6e460a https://github.com/openSUSE/open-build-service/commit/ff59981cb19bf99011a966... Author: Eduardo Navarro <enavarro@suse.com> Date: 2020-04-27 (Mon, 27 Apr 2020) Changed paths: M src/api/db/structure.sql Log Message: ----------- Fix pending structure.sql file modification When the `enable` field was added, the diff check for the structure.sql file didn't throw an error, because the it was not working properly. After fixing the diff check in the previous commit, we fix the structure.sql file. Commit: 1cded32aa3e5e48dcfcfbf984c19bd4993260be8 https://github.com/openSUSE/open-build-service/commit/1cded32aa3e5e48dcfcfbf... Author: Dany Marcoux <danymarcoux@gmail.com> Date: 2020-05-04 (Mon, 04 May 2020) Changed paths: M src/api/db/structure.sql M src/api/lib/tasks/databases.rake Log Message: ----------- Merge pull request #9450 from eduardoj/fix/git-diff-exit-code Fix checking for diffs between structure.sql files Compare: https://github.com/openSUSE/open-build-service/compare/d7037c4941d6...1cded3...
participants (1)
-
Dany Marcoux