diff options
| author | Max Howell | 2009-08-06 19:40:33 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-06 20:25:59 +0100 |
| commit | 1b89593c7226f2550946c3dfc84dcf8883ea5c4f (patch) | |
| tree | 6319526dda03fcc49fd60f8a93746ab48adc8645 /Library/Formula/git.rb | |
| parent | 1cf339388b40adfc327379d8a4a4fd69deffbadb (diff) | |
| download | homebrew-1b89593c7226f2550946c3dfc84dcf8883ea5c4f.tar.bz2 | |
Only hardlink git to the other bits if they are indeed the same files
Diffstat (limited to 'Library/Formula/git.rb')
| -rw-r--r-- | Library/Formula/git.rb | 1 |
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 |
