Skip to content

For the untracked test, avoid files on staging area #1080

@beto-aveiga

Description

@beto-aveiga

When doing a commit check, I've seen the following error:

[test:untracked] M  .github/workflows/PantheonDevDeploy.yml
[test:untracked] Untracked changes detected - please rectify or add the files to your .gitignore
task: Failed to run task "test:static": exit status 1
Failed to run task test:static: exit status 201            

The pre-commit runs:

#!/bin/sh

ddev task test:static

And task test:static runs:

    deps: [lint, phpstan, phpunit:static, phpcs]
    cmds:
      - task: untracked

Then the untracked script should not consider files in the stage area of a commit.

This is what I expect

Error: untracked or modified files not added to the stage area

Image

No error: no unstaged changes or untracked files

Image

Metadata

Metadata

Assignees

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