summaryrefslogtreecommitdiff
path: root/commit.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-05 15:14:41 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-05 15:14:41 -0400
commit3514e31f18ed1af7d395af0e65c3d90b0bd7305d (patch)
tree680e88870e6845df73cbda143e0bb76ef0389362 /commit.d
parente2853acb5205d87d3a01e8e602abaf45489d4207 (diff)
Add commit hook script for bzr to add new files
Diffstat (limited to 'commit.d')
-rwxr-xr-xcommit.d/40bzr-rm3
-rwxr-xr-xcommit.d/40git-rm3
2 files changed, 6 insertions, 0 deletions
diff --git a/commit.d/40bzr-rm b/commit.d/40bzr-rm
index b690acc..d908a40 100755
--- a/commit.d/40bzr-rm
+++ b/commit.d/40bzr-rm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+IFS='
+'
+
if [ "$VCS" = bzr ] && [ -d .bzr ]; then
for file in $(bzr deleted); do
if [ ! -d "$file" ]; then
diff --git a/commit.d/40git-rm b/commit.d/40git-rm
index acf7c37..d2c51c2 100755
--- a/commit.d/40git-rm
+++ b/commit.d/40git-rm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+IFS='
+'
+
if [ "$VCS" = git ] && [ -d .git ]; then
for file in $(git ls-files --deleted); do
if [ ! -d "$file" ]; then