mirror of
https://github.com/gosticks/brew.git
synced 2026-08-30 13:30:17 +00:00
Don't try to `fetch --depth=1` unless we've confirmed the repository is already shallow. Otherwise this can discard history from a full clone. Additionally, if the repository wasn't shallow but there's no tags found assume that Git is too old and try a naive sort if on Linux where `sort` is able to sort versions.