Skip to content

Update git-init.sh - check staged file instead of working file

Damien Gabriel requested to merge 666damo/HomelabOS:666damo-dev-patch-29001 into dev

Previously, test would only check the working directory for the encrypted vault.

This allowed an edge case where the following could occur:

  1. Unencrypted vault is added to staging.
  2. Vault is encrypted, but is not added to staging.
  3. Commit succeeds, storing the unencrypted vault.

The new test improves the old by checking against the staged file, instead of the working file.

Merge request reports