summaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2020-12-14 03:12:36 +0100
committeryushyin <yushyin@saga>2020-12-14 03:12:36 +0100
commit62f5b430569d8a52f1b136f4b858e380dd1c8da5 (patch)
treea4e1ec5c9c854adbeb9591b1f30eb990282d2642 /git
parent22d45795e8f7c8faf612ba50a3be93e733200aab (diff)
downloaddotfiles-igor-62f5b430569d8a52f1b136f4b858e380dd1c8da5.tar.gz
dotfiles-igor-62f5b430569d8a52f1b136f4b858e380dd1c8da5.tar.xz
add work config
Diffstat (limited to 'git')
-rw-r--r--git/config14
-rw-r--r--git/package.toml3
2 files changed, 14 insertions, 3 deletions
diff --git a/git/config b/git/config
index 819dc8c..96ad22d 100644
--- a/git/config
+++ b/git/config
@@ -76,5 +76,15 @@
Git::command_noisy(qw{push -d}, $re, $br); \
'"
[user]
- name = yushyin
- email = yushyin@saga
+ name = <%= $secrets{dev}->{git}->{name} // 'yushyin' =%>
+ email = <%= $secrets{dev}->{git}->{email} // 'yushyin@saga' =%>
+
+<%=
+do {
+<<EOF
+[http]
+ sslCAInfo = $secrets{dev}->{git}->{sslCAInfo}
+ emptyAuth = true
+EOF
+} if defined $secrets{dev}->{git}->{sslCAInfo}
+=%>
diff --git a/git/package.toml b/git/package.toml
index 946ea2f..7fd7f77 100644
--- a/git/package.toml
+++ b/git/package.toml
@@ -1,3 +1,4 @@
-[[files]]
+[[templates]]
source = './config'
dest = '~/.config/git/config'
+delimiters = {open = '<%=', close = '=%>'}