commit 69138285fd4671855184a2de68e1b99aa0a4f3a8
Author: Eric Siegerman <pub08-git@davor.org>
Date:   Tue Oct 31 02:17:27 2017 -0400

    Build Build/InstallDesktopFile at "make all" time

    If you run stack as root (e.g. for "make install"), any files it
    creates under ./ will, of course, be owned by root.  That's a
    problem for subsequent runs as non-root.

    Reduce the likelihood of that happening by building
    Build/InstallDesktopFile during "make all", so that it needn't be
    built by "make install".

diff --git a/Makefile b/Makefile
index aceb65cae..6ac241f67 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all=git-annex git-annex-shell mans docs
+all=git-annex git-annex-shell mans docs Build/InstallDesktopFile

 # set to "./Setup" if you lack a cabal program. Or can be set to "stack"
 BUILDER?=cabal

Applied done. Note that I had to do a considerable amount of editing to get that in to a form that git am would accept. In the future, providing a patch in a form that git am can use would be better. --Joey