Cosium / git-code-format-maven-plugin

A maven plugin that automatically deploys code formatters as pre-commit git hook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to format it at Windows Environment

northerndeveloper opened this issue · comments

What steps will reproduce the problem?
Steps to reproduce the behavior:

  1. Tested at windows environment.
  2. I put cesium google plugin into the root pom.xml as I did the same thing in the UNIX systems.
  3. It was working properly. The problem is it does not work at UNIX environment.

What is the expected output?
Expected output is it will be automatically formatted during the git commit - push as it works in the UNIx systems but it does not work.

What happens instead?
It does not format. Nothing happens. It directly commit and pushes the file.

Environment:

  • OS: [e.g. Windows 10]
  • Git version: [e.g. 2.17.1]
  • git-code-format-maven-plugin version: [e.g. 2.5]
  • Maven version: [e.g. 3.5.4]

Link to a git repository that can be cloned to reproduce the problem:
This is critical. The absence of such repository will greatly reduce the chances of seeing the issue resolved.

Additional context
Add any other context about the problem here.

Hello. Do you have any suggestion about the issue ?

Hello,

I don't use Windows.
Some of my coworkers do and don't have such issue.

I personally do not have this error. Looks like your "precommit" hook is not taken into account. Which git client are you using? I'm using Git Bash.