diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/MGA/Git.pm | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- fix comparison of old and new ssh keys from ldap + Version 0.3 - ignore group members not matching user re diff --git a/lib/MGA/Git.pm b/lib/MGA/Git.pm index a9c0722..f6b9b7f 100644 --- a/lib/MGA/Git.pm +++ b/lib/MGA/Git.pm @@ -162,6 +162,7 @@ sub update_gitolite_keydir { } } foreach my $file (keys %users_old) { + chomp $users_old{$file}; if (!$users_new{$file}) { print "Removing $file\n"; unlink "$config->{pubkey_dir}/$file"; @@ -169,7 +170,8 @@ sub update_gitolite_keydir { } } foreach my $file (keys %users_new) { - if (!$users_old{$file} || chomp $users_old{$file} ne chomp $users_new{$file}) { + chomp $users_new{$file}; + if (!$users_old{$file} || $users_old{$file} ne $users_new{$file}) { print "Writing $file\n"; write_file("$config->{pubkey_dir}/$file", $users_new{$file}); $r->{keydir_changed} = 1; |