diff --git a/drupalorg_drush.drush.inc b/drupalorg_drush.drush.inc
index 8b0f0ce..c830a38 100644
--- a/drupalorg_drush.drush.inc
+++ b/drupalorg_drush.drush.inc
@@ -162,6 +162,7 @@ function drupalorg_drush_make_validate_info($info) {
         'DrushMakeDo_ProjectWhitelist',
         'DrushMakeDo_DownloadWhitelist',
         'DrushMakeDo_DownloadRevision',
+        'DrushMakeDo_DownloadGit',
         'DrushMakeDo_DownloadURL',
         'DrushMakeDo_ProjectPatch',
         'DrushMakeDo_ProjectUpdateXML',
@@ -383,6 +384,35 @@ class DrushMakeDo_DownloadRevision extends DrushMakeDo_Transformer {
 }
 
 /**
+ * If its a git download definition, set the project version.
+ */
+class DrushMakeDo_DownloadGit extends DrushMakeDo_Transformer {
+  function verify(&$makefile, $name = NULL) {
+    if (!empty($makefile['download']['type']) && $makefile['download']['type'] == 'git') {
+      if (!empty($makefile['download']['tag'])) {
+        $git_label = $makefile['download']['tag'];
+        $is_branch = FALSE;
+      }
+      elseif (!empty($makefile['download']['branch'])) {
+        $git_label = $makefile['download']['branch'];
+        $is_branch = TRUE;
+      }
+      if (!empty($git_label)) {
+        $matches = array();
+        if (preg_match('/^\d+\.x-(.+)$/', $git_label, $matches)) {
+          $make_version = $matches[1];
+          if ($is_branch) {
+            $make_version .= '-dev';
+          }
+          $makefile['version'] = $make_version;
+        }
+      }
+    }
+    return TRUE;
+  }
+}
+
+/**
  * Verify that download level attribute 'url' is used properly.
  *
  * At this point, we only allow 'url' if it's pointing to git.d.o.
