[sysadmin-bin] Strip description in get_doap_settings()



commit fd5e2347172283cc44e38314497ea4fad220d1d8
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Fri Jan 31 12:42:25 2020 +0100

    Strip description in get_doap_settings()

 git/post-receive-mirror-github | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index 976ea90..ad70338 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -184,7 +184,7 @@ def get_doap_settings(repo_name):
     return {
         "homepage": homepage.encode("utf-8").decode("utf-8"),
         "name": repo_name.encode("utf-8").decode("utf-8"),
-        "description": desc.encode("utf-8").decode("utf-8"),
+        "description": desc.encode("utf-8").decode("utf-8").strip(),
         "default_branch": branch_name.encode("utf-8").decode("utf-8"),
         "branches": branches,
     }
@@ -221,7 +221,7 @@ def main():
     github_repo_exists = gh.check_if_repo_exists(repo_name)
 
     if not github_repo_exists:
-        gh.create_github_repo(doap_settings['name'], doap_settings['description'].strip(), 
doap_settings['homepage'])
+        gh.create_github_repo(doap_settings['name'], doap_settings['description'], doap_settings['homepage'])
 
     github_settings = gh.get_github_repo(repo_name)
     github_repo_name = gh.normalize_name(repo_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]