diff --git a/git_deploy.module b/git_deploy.module index 1eb246d..d4cddaa 100644 --- a/git_deploy.module +++ b/git_deploy.module @@ -32,8 +32,7 @@ function git_deploy_system_info_alter(&$info, $file, $type) { if (!isset($projects[$directory])) { $projects[$directory] = []; // Get upstream info. - list($core) = explode('.', $info['core']); - $upstream = _git_deploy_get_upstream($git, $is_core ? "$core*" : "$info[core]-*"); + $upstream = _git_deploy_get_upstream($git, $is_core ? '7' : '7.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);