From bf7717ac132030ea22b7bfd32898c639f1fcb665 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 6 Jan 2015 23:32:51 +0100 Subject: git-serve.py: Adopt repositories on creation Automatically assign ownership when creating a new (empty) repository. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/git-integration') diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py index 800eada..a1c6e3a 100755 --- a/scripts/git-integration/git-serve.py +++ b/scripts/git-integration/git-serve.py @@ -76,8 +76,8 @@ def setup_repo(repo, user): die('%s: unknown user: %s' % (action, user)) cur.execute("INSERT INTO PackageBases (Name, SubmittedTS, ModifiedTS, " + - "SubmitterUID) VALUES (%s, UNIX_TIMESTAMP(), " + - "UNIX_TIMESTAMP(), %s)", [repo, userid]) + "SubmitterUID, MaintainerUID) VALUES (%s, UNIX_TIMESTAMP(), " + + "UNIX_TIMESTAMP(), %s, %s)", [repo, userid, userid]) db.commit() db.close() -- cgit v1.2.3-70-g09d2