Skip to content

(sheldon): fix sheldon errors with submodules

Julien WAECHTER requested to merge 20-sheldon-behaviour-with-submodules into dev

What does this MR do?

  • Exclude submodules in files to process by sheldon
  • Fix sheldon check on a single commit, even a merge commit using git show

How to test it?

To test submodule correction

Run sheldon with a range of commit on a repository with submodule:

> sheldon XXXX YYYY

To test single commit check

Run sheldon on a commit on a git repository (even merge commit)

> sheldon my_commit

Data

No required data

Additional tests to run

Run sheldon unit test:

> cd ./hooks
> python -m unittest discover

Associated issue

Closes #20 (closed)

Edited by Julien WAECHTER

Merge request reports