“fatal: not a git repository”

Happened again, but this time clean-building all fixed it.

error fetching visual-studio-code-bin: fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 
	 context: exit status 128

error fetching libshumate-git: fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 
	 context: exit status 128

error fetching qt5-styleplugins: fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 
	 context: exit status 128

error fetching python2-lxml: fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 
	 context: exit status 128