Made rebuild_gitadmin only take git repositories into account
This commit is contained in:
		| @@ -151,9 +151,12 @@ function rebuildConfiguration($gitosis_root) { | |||||||
|     ->execute(); |     ->execute(); | ||||||
|  |  | ||||||
|   foreach ($repositories as $repository_id => $repository) { |   foreach ($repositories as $repository_id => $repository) { | ||||||
|  |     $type = $repository->getVersionControlSystem(); | ||||||
|  |     if ($type == PhabricatorRepositoryType::REPOSITORY_TYPE_GIT) { | ||||||
|       handleSingleRepository( |       handleSingleRepository( | ||||||
|         $keydir, $viewer, $repository, $new_configuration, $used_keys); |         $keydir, $viewer, $repository, $new_configuration, $used_keys); | ||||||
|     } |     } | ||||||
|  |   } | ||||||
|  |  | ||||||
|   write_ini_file($new_configuration, $configuration_file); |   write_ini_file($new_configuration, $configuration_file); | ||||||
|   removeUnusedPublicKeys($keydir, $used_keys); |   removeUnusedPublicKeys($keydir, $used_keys); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user