vc-git-rootwalks up the tree until it finds the directory that contains the.gitsubdir and declares that to be the root of the repo.
But if there is not .git folder in the root directory, (vc-git-root (buffer-file-name)) gives following error Error running timer: (void-function vc-git-root).
How could I fix it?
config:
(defun my-find-files ()
(interactive)
(message "press t to toggle mark for all files found && Press Q for Query-Replace in Files...")
(find-dired (vc-git-root (buffer-file-name)) "-name \\*.py"))
Related: