diff options
author | Shawn O. Pearce <sop@google.com> | 2008-11-06 09:52:51 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2008-11-06 09:52:51 -0800 |
commit | 339ba9f6f70b1733f89a5ff89d5f155389a04094 (patch) | |
tree | be37abf6ef01588a1c894513a6febb651642b8db /git_config.py | |
parent | 70cd4ab2708eaae7d96d7e8b0a3f88850c163543 (diff) | |
download | git-repo-339ba9f6f70b1733f89a5ff89d5f155389a04094.tar.gz |
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 <sop@google.com>
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): | |||
258 | self.name = name | 258 | self.name = name |
259 | self.url = self._Get('url') | 259 | self.url = self._Get('url') |
260 | self.review = self._Get('review') | 260 | self.review = self._Get('review') |
261 | self.projectname = self._Get('projectname') | ||
261 | self.fetch = map(lambda x: RefSpec.FromString(x), | 262 | self.fetch = map(lambda x: RefSpec.FromString(x), |
262 | self._Get('fetch', all=True)) | 263 | self._Get('fetch', all=True)) |
263 | 264 | ||
@@ -299,6 +300,7 @@ class Remote(object): | |||
299 | """ | 300 | """ |
300 | self._Set('url', self.url) | 301 | self._Set('url', self.url) |
301 | self._Set('review', self.review) | 302 | self._Set('review', self.review) |
303 | self._Set('projectname', self.projectname) | ||
302 | self._Set('fetch', map(lambda x: str(x), self.fetch)) | 304 | self._Set('fetch', map(lambda x: str(x), self.fetch)) |
303 | 305 | ||
304 | def _Set(self, key, value): | 306 | def _Set(self, key, value): |