From d499c58345edf473e2ef34b8135b9da22d1f8691 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 28 Aug 2015 13:03:29 +0200 Subject: Remove sublab specific naming from running code --- backend/repo_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/repo_service.py b/backend/repo_service.py index dfd7c78..037d324 100644 --- a/backend/repo_service.py +++ b/backend/repo_service.py @@ -12,7 +12,7 @@ repo_desc_re = re.compile(r'^[\w\s]{5,}$') repo_dir = os.path.dirname(os.path.realpath(__file__)) repo_dir = os.path.join(repo_dir, 'gitolite') -repo_git = 'git@git.sublab.org:gitolite-admin.git' +repo_git = 'git@127.0.0.1:gitolite-admin.git' cgit_conf = '/etc/cgitrc.repo_service' class GitException(Exception): @@ -62,7 +62,7 @@ def gitolite_append(repo_owner, repo_name, repo_desc): git_call(['git', 'add', filename], cwd=repo_dir) git_call(['git', 'commit', - '--author=Repo Service ', + '--author=Repo Service ', '--message=repo_service: create %s for %s' % (repo_name, repo_owner)], cwd=repo_dir) git_call(['git', 'push', repo_git, 'master:master'], cwd=repo_dir) @@ -76,7 +76,7 @@ def cgit_append(repo_owner, repo_name, repo_desc): repo.url=%(repo_name)s repo.path=/var/lib/git/repositories/%(repo_name)s.git repo.desc=%(repo_desc)s -repo.owner=sublab +repo.owner=repo-service ''' % locals() with open(cgit_conf, 'a') as cgit_config: -- cgit v1.2.1