[sysadmin-bin] Allow redirects when retrieving the repository DOAP file, we need that as git.g.o now rewrites the D
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Allow redirects when retrieving the repository DOAP file, we need that as git.g.o now rewrites the D
- Date: Mon, 4 Sep 2017 14:48:05 +0000 (UTC)
commit 65a8aefc1a74637b9f8bd48956ee72ae72a7f931
Author: Andrea Veri <averi redhat com>
Date: Mon Sep 4 16:47:57 2017 +0200
Allow redirects when retrieving the repository DOAP file, we need that as git.g.o now rewrites the DOAP
URL for the projects part of the Gitlab pilot program
git/post-receive-mirror-github | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index 517cca0..e0f32c5 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -115,7 +115,7 @@ def get_repo_settings (repo_name):
doap_url = "https://git.gnome.org/browse/%s/plain/%s.doap" % (repo_name, repo_name)
rq = requests.get(doap_url)
- if rq.status_code != 200:
+ if rq.status_code != (200 or 301 or 302):
raise Exception ("Could not get doap: %s" % doap_url)
prj = et.fromstring(rq.content)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]