android: Exclude '.git*' paths when pushing test data to devices.

Should help trim down the amount of unneeded files pushed to devices.

Bug: 959916
Change-Id: Ib3a145626f5eeb519c62c7355229016f361cc8a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1613924
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660162}
diff --git a/build/android/pylib/utils/device_dependencies.py b/build/android/pylib/utils/device_dependencies.py
index bccc1c3..26cddb4 100644
--- a/build/android/pylib/utils/device_dependencies.py
+++ b/build/android/pylib/utils/device_dependencies.py
@@ -9,30 +9,32 @@
 
 
 _BLACKLIST = [
-  re.compile(r'.*OWNERS'),  # Should never be included.
-  re.compile(r'.*\.crx'),  # Chrome extension zip files.
-  re.compile(r'.*\.so'),  # Libraries packed into .apk.
-  re.compile(r'.*Mojo.*manifest\.json'),  # Some source_set()s pull these in.
-  re.compile(r'.*\.py'),  # Some test_support targets include python deps.
-  re.compile(r'.*\.stamp'),  # Stamp files should never be included.
-  re.compile(r'.*\.apk'),  # Should be installed separately.
-  re.compile(r'.*lib.java/.*'),  # Never need java intermediates.
+    re.compile(r'.*OWNERS'),  # Should never be included.
+    re.compile(r'.*\.crx'),  # Chrome extension zip files.
+    re.compile(os.path.join('.*',
+                            r'\.git.*')),  # Any '.git*' directories/files.
+    re.compile(r'.*\.so'),  # Libraries packed into .apk.
+    re.compile(r'.*Mojo.*manifest\.json'),  # Some source_set()s pull these in.
+    re.compile(r'.*\.py'),  # Some test_support targets include python deps.
+    re.compile(r'.*\.stamp'),  # Stamp files should never be included.
+    re.compile(r'.*\.apk'),  # Should be installed separately.
+    re.compile(r'.*lib.java/.*'),  # Never need java intermediates.
 
-  # Chrome external extensions config file.
-  re.compile(r'.*external_extensions\.json'),
+    # Chrome external extensions config file.
+    re.compile(r'.*external_extensions\.json'),
 
-  # Exists just to test the compile, not to be run.
-  re.compile(r'.*jni_generator_tests'),
+    # Exists just to test the compile, not to be run.
+    re.compile(r'.*jni_generator_tests'),
 
-  # v8's blobs and icu data get packaged into APKs.
-  re.compile(r'.*natives_blob.*\.bin'),
-  re.compile(r'.*snapshot_blob.*\.bin'),
-  re.compile(r'.*icudtl.bin'),
+    # v8's blobs and icu data get packaged into APKs.
+    re.compile(r'.*natives_blob.*\.bin'),
+    re.compile(r'.*snapshot_blob.*\.bin'),
+    re.compile(r'.*icudtl.bin'),
 
-  # Scripts that are needed by swarming, but not on devices:
-  re.compile(r'.*llvm-symbolizer'),
-  re.compile(r'.*md5sum_bin'),
-  re.compile(os.path.join('.*', 'development', 'scripts', 'stack')),
+    # Scripts that are needed by swarming, but not on devices:
+    re.compile(r'.*llvm-symbolizer'),
+    re.compile(r'.*md5sum_bin'),
+    re.compile(os.path.join('.*', 'development', 'scripts', 'stack')),
 ]