Merge branch 'jk/show-branch-strbuf' into maint
[gitweb.git] / contrib / remote-helpers / git-remote-hg
index 328c2dc76dd33e47cfe69064757631e9717771e6..45f6c80d45ab9848d1197e34a00b8ac5977a05fc 100755 (executable)
@@ -326,6 +326,8 @@ def export_ref(repo, name, kind, head):
         else:
             modified, removed = get_filechanges(repo, c, parents[0])
 
+        desc += '\n'
+
         if mode == 'hg':
             extra_msg = ''
 
@@ -349,7 +351,6 @@ def export_ref(repo, name, kind, head):
                 else:
                     extra_msg += "extra : %s : %s\n" % (key, urllib.quote(value))
 
-            desc += '\n'
             if extra_msg:
                 desc += '\n--HG--\n' + extra_msg