cloud-storage: simplify creation of git authorship

While having the local user information in the repo on Linux seemed
clever when we implemented it, it's inconsistent with all the other
platforms. Let's just not do that unless the user has indeed set
a global name/email pair for git.

Instead indicate if this was Subsurface or Subsurface-mobile.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-04-09 17:03:43 -07:00
parent 67a717dc05
commit 7a238b6146
7 changed files with 7 additions and 65 deletions

View file

@ -20,12 +20,6 @@
#include <zip.h>
#include <sys/stat.h>
void subsurface_user_info(struct user_info *info)
{
UNUSED(info);
/* Nothing, let's use libgit2-20 on MacOS */
}
/* macos defines CFSTR to create a CFString object from a constant,
* but no similar macros if a C string variable is supposed to be
* the argument. We add this here (hardcoding the default allocator