Make OpenJDK build work with repo .git directories

Repo creates .git directories with a dangling .git/shallow symlink,
which causes a make error:
make[1]: *** No rule to make target `/home/build/out/hotspot/.git/shallow', needed by `/home/build/out/build/linux-x86_64-normal-server-release/hotspot/_hotspot.timestamp'.  Stop.

Prune .git directories along with .hg directories.
diff --git a/make/HotspotWrapper.gmk b/make/HotspotWrapper.gmk
index 51437df..99a2b23 100644
--- a/make/HotspotWrapper.gmk
+++ b/make/HotspotWrapper.gmk
@@ -35,8 +35,8 @@
 
 default: all
 
-# Get all files except .hg in the hotspot directory.
-HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -prune -o -print)
+# Get all files except .hg or .git in the hotspot directory.
+HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -o -name ".git" -prune -o -print)
 
 # The old build creates hotspot output dir before calling hotspot and
 # not doing it breaks builds on msys.