Index: drupalorg_versioncontrol/drupalorg_versioncontrol.module
===================================================================
RCS file: /Users/wright/drupal/local_repo/contributions/modules/drupalorg/drupalorg_versioncontrol/drupalorg_versioncontrol.module,v
retrieving revision 1.1.2.15
diff -u -p -r1.1.2.15 drupalorg_versioncontrol.module
--- drupalorg_versioncontrol/drupalorg_versioncontrol.module	17 Feb 2011 23:00:58 -0000	1.1.2.15
+++ drupalorg_versioncontrol/drupalorg_versioncontrol.module	20 Feb 2011 05:44:05 -0000
@@ -211,3 +211,24 @@ function drupalorg_versioncontrol_views_
     }
   }
 }
+
+/**
+ * Implements hook_form_alter().
+ */
+function drupalorg_versioncontrol_form_alter(&$form, $form_state, $form_id) {
+  if ($form_id == 'project_release_node_form' && !empty($form['error']) && !empty($form['retry'])) {
+    $project = $form['project']['#value'];
+    $msg = '<strong>' . t('No valid branches or tags found.') . '</strong>';
+    $msg .= '<p>' . t('In order to create a release, you need to have a tag or branch that follows the <a href="http://drupal.org/node/1015226">naming conventions</a> and does not already have a release attached to it.') . '</p>';
+    $msg .= '<p>' . t('Valid release tag examples include:') . '</p>';
+    $examples = array('7.x-1.2', '7.x-2.0-alpha2', '7.x-2.0-beta3');
+    $msg .= theme('item_list', $examples);
+    $msg .= '<p>' . t('Valid release branch examples include:') . '</p>';
+    $examples = array('7.x-1.x', '6.x-2.x');
+    $msg .= theme('item_list', $examples);
+    $msg .= '<p>' . t('For more help, see <a href="http://drupal.org/node/1066342">Creating a Tag or Branch in Git</a> or the <a href="@git_instructions_url">Git instructions</a> page for your project.', array('@git_instructions_url' => url('node/' . $project->nid . '/git-instructions'))) . '</p>';
+    $msg .= '<p>' . t('Once you have created a valid branch or tag, you can <a href="@retry">try again</a>.', array('@retry' => url('node/add/project_release/' . $project->nid))) . '</p>';
+    $form['error']['#value'] = $msg;
+    unset($form['retry']);
+  }
+}
