Fix the finicky parsing logic and just ask git the necessary information directly.
Attach a file by drag & drop or click to upload