diff options
Diffstat (limited to 'pkgs/development/compilers/rust/patches/remove-uneeded-git.patch')
-rw-r--r-- | pkgs/development/compilers/rust/patches/remove-uneeded-git.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/patches/remove-uneeded-git.patch b/pkgs/development/compilers/rust/patches/remove-uneeded-git.patch new file mode 100644 index 000000000000..3c68d777f885 --- /dev/null +++ b/pkgs/development/compilers/rust/patches/remove-uneeded-git.patch @@ -0,0 +1,19 @@ +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 = "" |