diff options
Diffstat (limited to 'pre-install.d')
-rwxr-xr-x | pre-install.d/50uncommitted-changes | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pre-install.d/50uncommitted-changes b/pre-install.d/50uncommitted-changes index 3bfc037..f4c0f0f 100755 --- a/pre-install.d/50uncommitted-changes +++ b/pre-install.d/50uncommitted-changes @@ -22,6 +22,11 @@ commit() { if [ "$VCS" = git ]; then git add . + for file in $(git ls-files --deleted); do + if [ ! -d "$file" ]; then + git rm --quiet "$file" + fi + done git commit $GIT_COMMIT_OPTIONS -m "$message" elif [ "$VCS" = hg ]; then hg addremove . |