From 339ba9f6f70b1733f89a5ff89d5f155389a04094 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 6 Nov 2008 09:52:51 -0800 Subject: Use remote.*.projectname to indicate the target project for upload This way "forks" of a project, e.g. the linux kernel, can be setup to use different destination projects in the review server by creating different remotes in the client side Git repository. Signed-off-by: Shawn O. Pearce --- git_config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git_config.py') diff --git a/git_config.py b/git_config.py index 9d5162e7..9ddb2edc 100644 --- a/git_config.py +++ b/git_config.py @@ -258,6 +258,7 @@ class Remote(object): self.name = name self.url = self._Get('url') self.review = self._Get('review') + self.projectname = self._Get('projectname') self.fetch = map(lambda x: RefSpec.FromString(x), self._Get('fetch', all=True)) @@ -299,6 +300,7 @@ class Remote(object): """ self._Set('url', self.url) self._Set('review', self.review) + self._Set('projectname', self.projectname) self._Set('fetch', map(lambda x: str(x), self.fetch)) def _Set(self, key, value): -- cgit v1.2.3-54-g00ecf