mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-24 08:42:58 +00:00
update centos.git.repolist.py for git update, submitted by Pat Riehecky
This commit is contained in:
parent
1ad34919a1
commit
4ec6d6633e
1 changed files with 7 additions and 2 deletions
|
@ -13,7 +13,7 @@ import requests
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
RPCURL = "https://git.centos.org/rpc?req=LIST_REPOSITORIES"
|
RPCURL = "https://git.centos.org/rpc/?req=LIST_REPOSITORIES"
|
||||||
|
|
||||||
def read_args():
|
def read_args():
|
||||||
'''
|
'''
|
||||||
|
@ -48,6 +48,11 @@ def get_repo_list(url, branch, projectpath):
|
||||||
print err_msg
|
print err_msg
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
if req.status_code != 200:
|
||||||
|
print "Unable to access gitblit api at " + url
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
payload = req.text
|
payload = req.text
|
||||||
repos = json.loads(payload)
|
repos = json.loads(payload)
|
||||||
branchname = 'refs/heads/' + branch
|
branchname = 'refs/heads/' + branch
|
||||||
|
|
Loading…
Add table
Reference in a new issue