Skip to content

Cli.js has no error handling and can error out if cloned repos are out of date #54

@rebeccaalpert

Description

@rebeccaalpert

We saw someone who had previously cloned folders via the CLI tool hit git config errors when running the CLI tool:

"hint: you have divergent branches and need to specify how to reconcile them.
...
... hit config pull.rebase, etc.
..."

I think this is tied to this line here: https://github.com/rh-uxd/patternfly-analytics/blob/master/src/static-analysis/cli.js#L36

Repos get cloned into the tmp folder and may get out of date with main or master.

We have no error handling set up and no way set up to prevent this from happening. We were able to manually resolve this by finding the folder that had the issue and resetting to match the remote, but it would be great if the script had either a) better error handling or b) was able to do this automatically for each folder, depending on whether the branch is main or master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions