mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-12 00:06:18 -04:00
In bash 3.2 uninitialized arrays contain one entry: an empty string, whereas in modern versions of bash they do not contain any entry. Make sure the $commits and $files arrays are explicitly initialized as empty arrays to allow git to fall back to diffing local changes instead of trying to diff against a revision with a name of an empty string. |
||
|---|---|---|
| .. | ||
| git-forgit | ||