[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/emerge/bin/Source
From:       Ralf Habacker <ralf.habacker () freenet ! de>
Date:       2011-01-31 8:41:49
Message-ID: 20110131084149.C99C2AC8BC () svn ! kde ! org
[Download RAW message or body]

SVN commit 1218087 by habacker:

set global git config if not present according to \
http://community.kde.org/Sysadmin/GitKdeOrgManual#Let_Git_rewrite_URL_prefixes

 M  +8 -0      GitSource.py  


--- trunk/kdesupport/emerge/bin/Source/GitSource.py #1218086:1218087
@@ -26,6 +26,14 @@
         if os.path.exists( gitInstallDir ):
             self.shell.msysdir = gitInstallDir
             utils.debug( 'using shell from %s' % gitInstallDir, 1 )
+            tmpFile = tempfile.TemporaryFile()
+            self.shell.execute( self.workDir(), "git", "config --global --get \
url.git://anongit.kde.org/.insteadof", out=tmpFile ) +            for line in \
tmpFile: +                if line.contains("kde:"):
+                    return
+            self.shell.execute( self.workDir(), "git", "config --global --add \
url.git://anongit.kde.org/.insteadof kde:" ) +            self.shell.execute( \
self.workDir(), "git", "config --global --add \
url.ssh://git@git.kde.org/.pushinsteadof kde:" ) +            utils.debug( "adding \
kde related settings to global git config file",1 )  
     def __getCurrentBranch( self ):
         branch = None


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic