nixpkgs/pkgs/development/compilers/rustc/patches/remove-uneeded-git.patch
William A. Kennington III de2906e670 rustc: Update both versions of the compiler
rustc: 1.2.0 -> 1.3.0
  rustcMaster: 2015-09-05 -> 2015-09-21

This also removes the llvm bundling which reduced immediate the closure size
by ~50MB. It also tries to reduce some of the superfluous dependencies
to help reduce the number of potential rebuilds (namely removing git).
2015-09-23 12:30:00 -07:00

20 lines
626 B
Diff

diff --git a/src/etc/tidy.py b/src/etc/tidy.py
index 9f5f919..a607180 100644
--- a/src/etc/tidy.py
+++ b/src/etc/tidy.py
@@ -66,13 +66,9 @@ def interesting_file(f):
return any(os.path.splitext(f)[1] == ext for ext in interesting_files)
-# Be careful to support Python 2.4, 2.6, and 3.x here!
-config_proc = subprocess.Popen(["git", "config", "core.autocrlf"],
- stdout=subprocess.PIPE)
-result = config_proc.communicate()[0]
true = "true".encode('utf8')
-autocrlf = result.strip() == true if result is not None else False
+autocrlf = False
current_name = ""
current_contents = ""