diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build
index e304ce5..52022dc 100755
--- a/kpatch-build/kpatch-build
+++ b/kpatch-build/kpatch-build
@@ -394,6 +394,7 @@ else
 
 		mv "$RPMTOPDIR"/BUILD/kernel-*/linux-"${ARCHVERSION%.*}"*"${ARCHVERSION##*.}" "$SRCDIR" >> "$LOGFILE" 2>&1 || die
 		rm -rf "$RPMTOPDIR"
+		rm -rf "$SRCDIR/.git"
 
 		cp "$SRCDIR/.config" "$OBJDIR" || die
 		if [[ "$ARCHVERSION" == *-* ]]; then