The original attempted fix missed an `isdir()` call in `get_base_branch()`.
Attach a file by drag & drop or click to upload