git: Store settings in config and not in environment variables
This commit is contained in:
parent
26765ffbf6
commit
179154ce12
3 changed files with 16 additions and 8 deletions
6
roles/git/client/templates/git.csh.j2
Normal file
6
roles/git/client/templates/git.csh.j2
Normal file
|
@ -0,0 +1,6 @@
|
|||
if ( "`git config user.name`" == "" ) then
|
||||
git config --global user.name "`getent passwd '${USER}' | cut -d : -f 5`"
|
||||
endif
|
||||
if ( "`git config user.email`" == "" ) then
|
||||
git config --global user.email "${USER}@foo.sh"
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue