aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 2a373a9c5..3b3a2124e 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -26,6 +26,7 @@ class Git <Formula
# of libexec/git-core lets hard link them
# I am assuming this is an overisght by the git devs
%w[git-receive-pack git-upload-archive].each do |fn|
+ next unless (bin+'git').stat.size == (bin+fn).stat.size
(bin+fn).unlink
(bin+fn).make_link bin+'git'
end