From 7575cd81ef1712ae39030282773c7c1facab6282 Mon Sep 17 00:00:00 2001
From: Daniel Stone <daniels@collabora.com>
Date: Thu, 16 Mar 2017 12:37:01 +0000
Subject: [PATCH] Explicitly set revision title when creating

When creating a revision through the Conduit API, newer versions of
Phabricator require we explicitly set the title in the field, rather
than pulling it back from the commit message parsing.

Signed-off-by: Daniel Stone <daniels@collabora.com>

Differential Revision: https://phabricator.freedesktop.org/D1694
---
 git-phab | 1 +
 1 file changed, 1 insertion(+)

diff --git a/git-phab b/git-phab
index d562066..0e38619 100755
--- a/git-phab
+++ b/git-phab
@@ -1105,6 +1105,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
             corpus=arc_message)
 
         fields = parsed_message["fields"]
+        fields["title"] = subject
         if not revision_id:
             revision = phab.differential.createrevision(fields=fields,
                                                         diffid=diff.diffid)
-- 
2.9.3

