“fatal: not a git repository”

Any git hosted AUR packages failed to update today with yay, giving this error:

error fetching dropbox: 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

The support posts about this all involved fish and themed prompts, but I’m just using plain old bash and I don’t think there’s anything special about my prompt.

The updates have now all succeeded using pamac-manager, but can anyone explain why this happens?

A bug in yay?


I’m not even sure the other people reporting this were using yay. It’s also strange that it wasn’t happening a week ago.

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

I am encountering this issue now with yay as well.

Installing or updating packages:

 -> error resetting <package-name>: fatal: not a git repository (or any of the parent directories): .git

How did you perform the clean-building @Moilleadoir?