Răsfoiți Sursa

fix(git): Fix username

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 ani în urmă
părinte
comite
d8999f6d0b
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      cookbooks/workstation/recipes/_git.rb

+ 2 - 0
cookbooks/workstation/recipes/_git.rb

@@ -10,6 +10,8 @@ include_recipe 'workstation::_user'
 
 include_recipe 'workstation::_ssh-ident'
 
+username = node['my_workstation']['default_user'].first[0]
+
 node['workstation']['_git'].each do |scope_git, git_options|
   if scope_git.match(/^file_/)
     gitconfig_file = $' # String after the match (ref: https://ruby-doc.org/core-2.5.1/Regexp.html#class-Regexp-label-Special+global+variables)