From bc192cfa96f7b8f704573523a3586780c1537559 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 19 Aug 2022 15:50:13 +1200 Subject: Put Git repository template in XDG_DATA_HOME --- Makefile | 10 +++++----- git/config.mi5 | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5294e7c2..5c23df70 100644 --- a/Makefile +++ b/Makefile @@ -355,7 +355,7 @@ git/config: git/config.m4 -D NAME=$(NAME) \ -D EMAIL=$(EMAIL) \ -D GPG_KEYID=$(GPG_KEYID) \ - -D XDG_CONFIG_HOME=$(XDG_CONFIG_HOME) \ + -D XDG_DATA_HOME=$(XDG_DATA_HOME) \ git/config.m4 > $@ less/less: less/lesskey @@ -450,12 +450,12 @@ install-games-man: install-git: git/config $(GIT_TEMPLATE_HOOKS) mkdir -p -- $(XDG_CONFIG_HOME)/git cp -p -- git/config $(XDG_CONFIG_HOME)/git/config - mkdir -p -- $(XDG_CONFIG_HOME)/git/template + mkdir -p -- $(XDG_DATA_HOME)/git/template cp -pR -- git/template/description \ - $(XDG_CONFIG_HOME)/git/template/description - mkdir -p -- $(XDG_CONFIG_HOME)/git/template/hooks + $(XDG_DATA_HOME)/git/template/description + mkdir -p -- $(XDG_DATA_HOME)/git/template/hooks cp -pR -- $(GIT_TEMPLATE_HOOKS) \ - $(XDG_CONFIG_HOME)/git/template/hooks + $(XDG_DATA_HOME)/git/template/hooks install-gnupg: gnupg/profile.d/gnupg.sh install-sh cp -p -- gnupg/profile.d/gnupg.sh $(HOME)/.profile.d diff --git a/git/config.mi5 b/git/config.mi5 index 6ae7f8ef..efdbc277 100644 --- a/git/config.mi5 +++ b/git/config.mi5 @@ -9,7 +9,7 @@ [init] defaultBranch = master - templateDir = <% XDG_CONFIG_HOME %>/git/template + templateDir = <% XDG_DATA_HOME %>/git/template [log] date = local -- cgit v1.2.3