Skip to content

Commit c9e3eee

Browse files
committed
Fix getting git name for changelog
1 parent 759c6c4 commit c9e3eee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

automated_packaging/common_functions.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ sub get_microsoft_email {
2222

2323
sub get_git_name {
2424
my $git_name = `git config user.name`;
25+
# Strip trailing newline
26+
chomp $git_name;
2527
if ($git_name eq "") {
2628
die "You must set your git name using 'git config user.name \"Your name Here\"'";
2729
}
28-
return $microsoft_email;
30+
return $git_name;
2931
}
3032

3133

0 commit comments

Comments
 (0)