gitea源码

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 6e8e2a6f9efd71dbe6917816343ed8415ad696c3 Mon Sep 17 00:00:00 2001
  2. From: 99rgosse <renaud@mycompany.com>
  3. Date: Fri, 26 Mar 2021 12:44:22 +0000
  4. Subject: [PATCH] Update gitea_import_actions.py
  5. ---
  6. gitea_import_actions.py | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. diff --git a/gitea_import_actions.py b/gitea_import_actions.py
  9. index f0d72cd..7b31963 100644
  10. --- a/gitea_import_actions.py
  11. +++ b/gitea_import_actions.py
  12. @@ -3,14 +3,14 @@
  13. # git log --pretty=format:'%H,%at,%s' --date=default > /tmp/commit.log
  14. # to get the commits logfile for a repository
  15. -import mysql.connector as mariadb
  16. +import psycopg2
  17. # set the following variables to fit your need...
  18. USERID = 1
  19. REPOID = 1
  20. BRANCH = "master"
  21. -mydb = mariadb.connect(
  22. +mydb = psycopg2.connect(
  23. host="localhost",
  24. user="user",
  25. passwd="password",
  26. @@ -31,4 +31,4 @@ with open("/tmp/commit.log") as f:
  27. mydb.commit()
  28. -print("actions inserted.")
  29. \ No newline at end of file
  30. +print("actions inserted.")
  31. --
  32. GitLab