From: Barış Metin Date: Tue, 15 Jun 2010 19:16:00 +0000 (+0200) Subject: username on the git server may not be the same with the local one. X-Git-Tag: 5.0-rc11~46 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=76834300506862d6c67021dfb8f021ae0ffbc45e;p=build.git username on the git server may not be the same with the local one. --- diff --git a/module-tools.py b/module-tools.py index 425e0448..29fb2470 100755 --- a/module-tools.py +++ b/module-tools.py @@ -373,6 +373,7 @@ class Module: configKeys=[ ('svnpath',"Enter your toplevel svnpath", "svn+ssh://%s@svn.planet-lab.org/svn/"%commands.getoutput("id -un")), ('gitserver', "Enter your git server's hostname", "git.onelab.eu"), + ('gituser', "Enter your user name (login name) on git server", os.getlogin()), ("build", "Enter the name of your build module","build"), ('username',"Enter your firstname and lastname for changelogs",""), ("email","Enter your email address for changelogs",""), @@ -448,7 +449,7 @@ class Module: @classmethod def git_remote_dir (cls, name): - return "%s:/git/%s.git" % (cls.config['gitserver'], name) + return "%s@%s:/git/%s.git" % (cls.config['gituser'], cls.config['gitserver'], name) @classmethod def svn_remote_dir (cls, name):