From bbc7e253bae2b32cdfcb32ecf9c00b2f44756a81 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 4 Jan 2008 18:46:24 -0500 Subject: * Commit removed files in the pre-install hook to git, as was already done for hg. Avoided changing the debconf template so bubulle doesn't murder me; the current wording is just vague enough to still work with the current behavior. --- pre-install.d/50uncommitted-changes | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pre-install.d/50uncommitted-changes') 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 . -- cgit v1.2.3