ansible/roles/git/client/templates/git.csh.j2

8 lines
338 B
Django/Jinja

if ($uid > 3000 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") then
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}@{{ mail_domain }}"
endif
endif