diff --git a/git_deploy.module b/git_deploy.module index 3535912..ac43221 100644 --- a/git_deploy.module +++ b/git_deploy.module @@ -30,8 +30,7 @@ function git_deploy_system_info_alter(array &$info, Extension $file, $type) { if (!isset($projects[$directory])) { $projects[$directory] = []; // Get upstream info. - list($core) = explode('.', $info['core']); - $upstream = _git_deploy_get_upstream($git, $file->origin == 'core' ? "$core*" : "$info[core]-*"); + $upstream = _git_deploy_get_upstream($git, $file->origin == 'core' ? '8.*' : '8.x-*'); // Find the project name based on fetch URL. if (isset($upstream['remote'])) { $fetch_url = exec("$git config --get remote.$upstream[remote].url 2> " . GIT_DEPLOY_ERROR_DUMP);