Sam Ford 942f419a48
ResourceAuditor: Fix #audit_head_branch error
The existing logic in `#audit_head_branch` for identifying the `HEAD`
branch in a Git repository will give an ```undefined method `[]' for
nil:NilClass``` error when a repository doesn't provide this
reference. Expected output is as follows:

```
ref: refs/heads/master  HEAD
1a8f9ac700873d1a08de31a17a2fd654245d5085  HEAD
```

However, I encountered this error for a repository with the following
output (i.e., where no symref is provided for HEAD):

```
f86be659718c0cd0a67f88b42f07044c23d0d028  HEAD
```

This commit resolves the error by modifying the related logic to
account for a `nil` value.
2022-10-17 13:28:20 -04:00
..
2022-08-23 11:25:02 +01:00
2022-08-13 00:13:41 +00:00
2022-10-15 00:35:47 +00:00
2022-10-14 01:30:38 +01:00
2022-10-14 09:00:12 +00:00
2022-06-14 16:06:05 -04:00
2022-09-08 01:44:31 +01:00
2022-09-28 23:12:58 +02:00
2022-04-28 10:40:16 -04:00
2022-08-23 12:42:02 +01:00
2022-06-30 08:56:21 +01:00
2022-08-23 12:42:02 +01:00
2022-09-11 22:10:37 -05:00
2022-09-29 16:33:44 +08:00
2022-08-05 17:12:55 -04:00
2022-06-29 11:34:49 -04:00
2022-08-13 23:30:20 -10:00
2022-06-10 19:32:32 +01:00
2022-09-14 22:23:01 -04:00
2022-09-08 01:44:31 +01:00
2022-06-02 03:25:55 +01:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!