finishing touches etc
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 5 Nov 2007 23:13:00 +0000 (18:13 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 5 Nov 2007 23:13:00 +0000 (18:13 -0500)
Makefile
README
init.d/20git-init
pre-commit.d/10warn-empty-directory

index 75a329bf49e5cc3262ccf986bc9c9d22edb83efe..96f7fb89aa2b646f999cc4c65c54e788b7390408 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,3 +14,5 @@ install:
                        ln -sf /usr/lib/etckeeper/$$file $(PREFIX)/etc/etckeeper/$$file; \
                done; \
        done
+
+       install -m 0644 -D apt.conf $(PREFIX)/etc/apt/apt.conf.d/05etckeeper
diff --git a/README b/README
index 967ffea8b3f22ac4db1472ea8855b1df5ae570c3..6fb04d94165e9f6a7bf3366bdb7742c6c2f9b565 100644 (file)
--- a/README
+++ b/README
@@ -74,6 +74,7 @@ the right files, and none of the wrong files. And you can edit the
 .gitignore and so forth. Once you're ready:
 
        git commit -m "initial checkin"
+       git gc # pack git repo to save a lot of space
 
 After this first checkin, you can use regular git commands to check in
 further changes:
index 7bf1c893a9965c24d049669bf3ec1f5a7cd82561..69867c4b4c8961fae5fa501c79c2d41c423f569b 100755 (executable)
@@ -2,4 +2,5 @@
 set -e
 if [ ! -e .git ]; then
        git-init
+       echo "$(hostname) /etc repository" > .git/description
 fi
index 3f6cdaa020795f043f3cddd42ea01c4aec5b9fb3..ef70b72e28d2c60472637d853b1ced6e0a4e6a23 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-empty=$(find -type f -empty | grep -v /.git/) || true
+empty=$(find -type d -empty | grep -v /.git/) || true
 if [ -n "$empty" ]; then
        echo "etckeeper warning: empty directories, not tracked by git:" >&2
        echo "$empty" >&2