Tools: Git repo is dirty error comes when run modulizer

Created on 5 Jul 2018  路  3Comments  路  Source: Polymer/tools

Installed polymer-modulizer and tried to run modulizer. I tried this in different projects and tried running the command a directory where no polymer project exists. But following error comes in every attempt.

$ modulizer --import-style name --out .
Git repo is dirty. Check all changes in to source control and then try again.

modulizer wontfix

Most helpful comment

You can add param --force to ignore that:

 if (!options.force && isRepo && (stdout || stderr)) {
    console.error(
        `Git repo is dirty. Check all changes in to source control and ` +
        `then try again.`);
    process.exit(1);
  }

All 3 comments

You can add param --force to ignore that:

 if (!options.force && isRepo && (stdout || stderr)) {
    console.error(
        `Git repo is dirty. Check all changes in to source control and ` +
        `then try again.`);
    process.exit(1);
  }

Hi Donskelle,

I'm encountering the same issue when trying to run modulizer. I'm new to Polymer and wondering if you could help explain where I could add the param you shared? Many thanks in advance.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings