-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where dirty submodules broke hash generation
Instead of appending the entire contents of modified files to the sha256 input, we should only append the diff as computed by `git diff` in order to handle all modifications properly, including submodules. This also fixes a bug where the processing of the git status output was too fragile. It makes it more generic by splitting the status string on fields instead. Signed-off-by: Matt Kelly <matt.kelly@containership.io>
- Loading branch information
Matt Kelly
committed
Jun 20, 2018
1 parent
64ecf0b
commit 35375dc
Showing
1 changed file
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters