Skip to content

Commit 7d9bc38

Browse files
Move git user configuration to create_dot_gitconfig.local.tmpl
This removes the user name and email from `dot_gitconfig.tmpl` (leaving only `useConfigOnly = true` under the `[user]` section) and adds the templated name and email into `create_dot_gitconfig.local.tmpl`. This ensures user configurations are correctly managed locally. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent aa4a2c8 commit 7d9bc38

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

create_dot_gitconfig.local.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[user]
2-
# name = Local User
3-
# email = local.user@example.com
2+
name = {{ index . "gitUserName" }}
3+
email = {{ index . "gitUserEmail" }}

dot_gitconfig.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
{{- $pagerTool := index . "gitPagerLocation" -}}
66

77
[user]
8-
name = {{ index . "gitUserName" }}
9-
email = {{ index . "gitUserEmail" }}
108
useConfigOnly = true
119
[init]
1210
defaultBranch = main

0 commit comments

Comments
 (0)