Using git from a program

you probably want to keep the original LD_LIBRARY_PATH here and extend it instead of replacing …:

LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio

(might need some quoting though)