From c62a6b7a1238524225ec9c214dc5eac7da017663 Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Sun, 20 Dec 2015 01:06:54 -0500
Subject: #2014 allow switch branches between two orgs in compose PR

---
 routers/repo/pull.go | 1 +
 1 file changed, 1 insertion(+)

(limited to 'routers/repo')

diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index ee018ebda7..e3500716d3 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -431,6 +431,7 @@ func ParseCompareInfo(ctx *middleware.Context) (*models.User, *models.Repository
 		}
 		return nil, nil, nil, nil, "", ""
 	}
+	ctx.Data["HeadUser"] = headUser
 
 	repo := ctx.Repo.Repository
 
-- 
cgit v1.2.3