[jhbuild] do not force full URI when remapping git module
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] do not force full URI when remapping git module
- Date: Sat, 18 Apr 2009 05:07:57 -0400 (EDT)
commit 20d10fafd77f06f9c8f78061af909af5d507430f
Author: Frederic Peters <fpeters 0d be>
Date: Sat Apr 18 11:05:46 2009 +0200
do not force full URI when remapping git module
---
jhbuild/versioncontrol/git.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index 85408f6..7055b22 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -75,8 +75,10 @@ class GitRepository(Repository):
module = name
# allow remapping of branch for module
if name in self.config.branches:
- module, revision = self.config.branches.get(name)
- else:
+ new_module, revision = self.config.branches.get(name)
+ if new_module:
+ module = new_module
+ if not urlparse.urlparse(module)[0]:
module = urlparse.urljoin(self.href, module)
return GitBranch(self, module, subdir, checkoutdir, revision, tag)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]