[jhbuild] Fixed reference to git module name when using dvcs_mirror_dir
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Fixed reference to git module name when using dvcs_mirror_dir
- Date: Sat, 1 May 2010 08:33:39 +0000 (UTC)
commit 8984e733c929a64538a2809998ed2d36c7e5a8b1
Author: Dmitrijs Ledkovs <dmitrij ledkov ubuntu com>
Date: Sat Apr 24 00:54:11 2010 +0100
Fixed reference to git module name when using dvcs_mirror_dir
Previously it assumed module href does not end with ".git" so if module href is
git://example.com/foo.git it would check for $dvcs_mirror_dir/foo.git.git,
think mirror doesn't exists and try to create it:
git clone --mirror git://example.com/foo.git
fatal: destination path 'foo.git' already exists and is not an empty directory.
jhbuild/versioncontrol/git.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index cb6d818..68354f9 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -213,7 +213,7 @@ class GitBranch(Branch):
return
mirror_dir = os.path.join(self.config.dvcs_mirror_dir,
- os.path.basename(self.module) + '.git')
+ self.get_module_basename() + '.git')
if os.path.exists(mirror_dir):
buildscript.execute(['git', 'fetch'], cwd=mirror_dir,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]