Klipper "Failed to detect git branch" "Failed to detect repo url"

Basic Information:

Printer Model: Ender 5 Pro
MCU / Printerboard: Creality 4.2.7
Host / SBC Pi Zero W
klippy.log
klippy.log (191.9 KB)

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

After Installing Mainsail on the Pi and installing klipper firmware on the mcu there is an invalid report

klipper
?

invalid

Failed to detect git branch

Failed to detect repo url