hyiso / lint_staged

Run linters on git staged files for your Flutter and Dart projects. Inspired by JavaScript lint-staged library
https://pub.dev/packages/lint_staged
Apache License 2.0
6 stars 2 forks source link

Failed when only update git submodule revision #5

Closed hyiso closed 1 year ago

hyiso commented 1 year ago

lint_staged failed when only add/update git submodule revision.

Steps:

  1. Add a submodule to a repo
  2. Commit this change
  3. Add new changes to submodule and commit.
  4. Commit the revision update

Expected: lint_staged pass through. Actul: lint_staged failed