diff options
| author | Jack Nagel | 2014-05-26 11:18:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-26 11:19:16 -0500 |
| commit | 84251bd44fbdc722a36c41891ed2b15b3406afbe (patch) | |
| tree | b9e2520d8abcf52c63ee1a3e961f029cb67e165f | |
| parent | 45f09cd9c32b4ee8da1fa1348fe98caea56a0b04 (diff) | |
| download | brew-84251bd44fbdc722a36c41891ed2b15b3406afbe.tar.bz2 | |
Fix formula path usage in brew-gist-logs
Formula#path can no longer be a symlink.
| -rwxr-xr-x | Library/Contributions/cmd/brew-gist-logs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-gist-logs.rb b/Library/Contributions/cmd/brew-gist-logs.rb index 28765a2e3..fe71865f3 100755 --- a/Library/Contributions/cmd/brew-gist-logs.rb +++ b/Library/Contributions/cmd/brew-gist-logs.rb @@ -86,7 +86,7 @@ class HTTP_Error < RuntimeError end def repo_name f - dir = (f.path.symlink? ? f.path.realpath.dirname : HOMEBREW_REPOSITORY) + dir = f.path.dirname url = dir.cd { `git config --get remote.origin.url` } unless url =~ %r{github.com(?:/|:)([\w\d]+)/([\-\w\d]+)} raise 'Unable to determine formula repository.' |
