diff options
| author | Douglas Creager | 2010-08-19 17:56:31 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-21 14:31:10 -0700 |
| commit | 339e837c9f85c5ebce452bd82b4a171e20400f0b (patch) | |
| tree | 7d6932cc389bf276a469a70791bd271109f1c7cc /Library/Formula | |
| parent | b4463d7f500a6c32a14f45fde83de37b5a0fa31d (diff) | |
| download | homebrew-339e837c9f85c5ebce452bd82b4a171e20400f0b.tar.bz2 | |
Install git-completion into Cellar
The git-completion script isn't really configuration, so it should be
installed into the Cellar, rather than directly into HOMEBREW_PREFIX.
That way it will get upgraded whenever git itself gets upgraded.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 7f0122c5c..1909622a4 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -30,8 +30,12 @@ class Git < Formula system "make", "prefix=#{prefix}", "install" - # Install the git bash completion file - (etc+'bash_completion.d').install 'contrib/completion/git-completion.bash' + # Install the git bash completion file. Put it into the Cellar so + # that it gets upgraded along with git upgrades. (Normally, etc + # files go directly into HOMEBREW_PREFIX so that they don't get + # clobbered on upgrade.) + + (prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash' # Install git-p4 bin.install 'contrib/fast-import/git-p4' |
