[jhbuild] Account for '.git' suffix removal in srcdir



commit 605b2086cf0dd812f759af471d2dde34dc2a2bac
Author: Dirk Wallenstein <halsmit t-online de>
Date:   Fri Oct 22 10:05:30 2010 +0200

    Account for '.git' suffix removal in srcdir
    
    If there is no checkoutdir specified, git-clone will remove a '.git'
    suffix from the clone URL to determine the destination directory.
    Account for that in the srcdir property.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632863

 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 6162de9..dbef3b1 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -144,7 +144,7 @@ class GitBranch(Branch):
         if self.checkoutdir:
             path_elements.append(self.checkoutdir)
         else:
-            path_elements.append(os.path.basename(self.module))
+            path_elements.append(self.get_module_basename())
         if self.subdir:
             path_elements.append(self.subdir)
         return os.path.join(*path_elements)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]