[sysadmin-bin] github_name has to be defined earlier
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] github_name has to be defined earlier
- Date: Tue, 11 Dec 2018 15:59:30 +0000 (UTC)
commit 3448a9f9bd8ab8e5c7d380d638b011a512fe7819
Author: Andrea Veri <averi redhat com>
Date: Tue Dec 11 16:59:14 2018 +0100
github_name has to be defined earlier
git/post-receive-mirror-github | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index 9c91e35..067fd82 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -160,6 +160,7 @@ def get_repo_settings(repo_name):
def main():
gh = GitHub(ORGANIZATION)
repo_name = get_repo_name()
+ github_name = gh.normalize_name(repo_name)
if repo_name.endswith('.wiki'):
sys.exit(1)
@@ -169,7 +170,6 @@ def main():
if not gh.check_if_repo_exists(repo_name):
gh.create_github_repo(settings["name"], settings["description"], settings["homepage"])
else:
- github_name = gh.normalize_name(repo_name)
description, homepage = gh.fetch_github_repo(github_name)
if description != settings["description"]:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]