diff --git a/debian/rules b/debian/rules
index 515d74c62dea9719cad0e02e47ef8f4063de58ae..bd40d8ff903157685817cacdb048b488c565c862 100755
--- a/debian/rules
+++ b/debian/rules
@@ -57,6 +57,7 @@ get-orig-source:
 	git config user.name "joulupukki"
 	git config user.email "joulupukki@localhost"
 	git merge $(DAEMON_TAG) --no-edit
+	rm -rf .git
 	# Packing
 	@echo "# Packing ... "
 	find . | sort \
diff --git a/ring-daemon.spec b/ring-daemon.spec
index c9f9588948c1c7efeef289e8c686834c8d0e2795..617483813be44a20ea32db9d9d18a8e5b4a9b3d4 100644
--- a/ring-daemon.spec
+++ b/ring-daemon.spec
@@ -47,6 +47,7 @@ git checkout packaging-releases -f
 git config user.name "joulupukki"
 git config user.email "joulupukki@localhost"
 git merge %{daemon_tag} --no-edit
+rm -rf .git
 # Apply all patches
 for patch_file in $(cat debian/patches/series | grep -v "^#")
 do