Andras Bacsai
02858c0892
test(rollback): verify shell metacharacter escaping in git commit parameter
2026-03-03 09:05:01 +01:00
Andras Bacsai
2dc0597562
test(rollback): use full-length git commit SHA values in test fixtures
...
Update test data to use complete 40-character git commit SHA hashes instead of abbreviated 12-character values.
2026-03-02 13:31:48 +01:00
Andras Bacsai
a565fc3b36
fix(rollback): escape commit SHA to prevent shell injection
...
Properly escape commit SHA using escapeshellarg() before passing it
to shell commands. Add comprehensive tests for git commit rollback
scenarios including shallow clone, fallback behavior, and HEAD handling.
2026-02-27 23:26:31 +01:00
Tjeerd Smid
1935403053
fix: application rollback uses correct commit sha
...
- setGitImportSettings() now accepts optional $commit parameter
- Uses passed commit over application's git_commit_sha (typically HEAD)
- Fixes rollback deploying latest instead of selected commit
- Also fixes shallow clone "bad object" error on rollback
Fixes #8445
2026-02-23 20:13:07 +01:00