[sysadmin-bin] Make sure we check whether the repo is a wiki before actually fetching its DOAP file
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Make sure we check whether the repo is a wiki before actually fetching its DOAP file
- Date: Thu, 19 Jul 2018 08:07:44 +0000 (UTC)
commit df550d3f731b8b00b95c97edc427e54a0011adf0
Author: Andrea Veri <averi redhat com>
Date: Thu Jul 19 10:07:21 2018 +0200
Make sure we check whether the repo is a wiki before actually fetching its DOAP file
git/post-receive-mirror-github | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index bd05225..89e0f67 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -157,13 +157,14 @@ def get_repo_settings(repo_name):
def main():
gh = GitHub()
repo_name = get_repo_name()
- github_name = gh.normalize_name(repo_name)
- description, homepage = gh.fetch_github_repo(github_name)
- settings = get_repo_settings(repo_name)
if repo_name.endswith('.wiki'):
sys.exit(1)
+ github_name = gh.normalize_name(repo_name)
+ description, homepage = gh.fetch_github_repo(github_name)
+ settings = get_repo_settings(repo_name)
+
if description != settings["description"]:
gh.update_github_repo(github_name, 'description', settings["description"])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]