Ignore untracked files on make upgrade

In case temporary/cache files are saved outside of .local, for example.
This commit is contained in:
Henrik Lissner 2018-06-01 11:25:47 +02:00
parent bab530ea2e
commit 2b052a9563
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -212,7 +212,7 @@ recompile. Run this whenever you:
(with-temp-buffer
(let ((default-directory dir))
(if (zerop (process-file "git" nil (current-buffer) nil
"status" "--porcelain"))
"status" "--porcelain" "-uno"))
(string-match-p "[^ \t\n]" (buffer-string))
(error "Failed to check working tree in %s" dir)))))