From ecc08af971ef11aa0d113bbaf6ffa18f0c331c94 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 24 Oct 2008 21:59:37 +0200 Subject: [PATCH] Cleaner initial repositories Typical Zit usage doesn't need most of the stuff that Git makes use of: hooks, branches, tags etc. They are automatically recreated as needed anyway. --- zit | 1 + 1 file changed, 1 insertion(+) diff --git a/zit b/zit index 7e34136..6eb1c41 100755 --- a/zit +++ b/zit @@ -65,6 +65,7 @@ zit_init() { mkdir $GIT_DIR && echo "Initializing Zit repository in $GIT_DIR" test -d $GIT_DIR || abort "Failed to create $GIT_DIR" git init || abort "Failed to initialize Git repository in $GIT_DIR" + rm -rf $GIT_DIR/{hooks,branches,refs/tags,objects/pack,description} echo "*" > $GIT_DIR/info/exclude git add -f $ZIT_FILE || abort "Failed to add $ZIT_FILE" git commit "$@" || abort "Failed to make first commit for $ZIT_FILE" -- 2.32.0.93.g670b81a890