Skip to content

chore: Add pre-commit hook to make sure to not push updater.phar with a dirty version#768

Open
come-nc wants to merge 2 commits into
masterfrom
fix/add-pre-commit-hooks
Open

chore: Add pre-commit hook to make sure to not push updater.phar with a dirty version#768
come-nc wants to merge 2 commits into
masterfrom
fix/add-pre-commit-hooks

Conversation

@come-nc
Copy link
Copy Markdown
Collaborator

@come-nc come-nc commented Jun 1, 2026

When git status is not clean "dirty" gets added in lib/Version.php and
that makes the check-same-code check to fail on updater.phar
This adds a pre-commit hook to detect that locally before pushing. Also added php-lint and cs-fixer hooks.

… a dirty version

When git status is not clean "dirty" gets added in lib/Version.php and
 that makes the check-same-code check to fail on updater.phar
This adds a pre-commit hook to detect that locally before pushing.
Also added php-lint and cs-fixer hooks.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc self-assigned this Jun 1, 2026
@come-nc come-nc requested review from Altahrim and skjnldsv as code owners June 1, 2026 08:48
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
Copy link
Copy Markdown
Collaborator Author

come-nc commented Jun 1, 2026

#757 may be a better alternative.

@joshtrichards joshtrichards linked an issue Jun 1, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Released updater having "dirty" version

1 participant