[sysadmin-bin] Use correct variable with organization name



commit a0dc4933840a8afd54cb66e6a55057b1f677b165
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 29 09:42:02 2019 +0100

    Use correct variable with organization name

 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 f7232fe..9d23170 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -232,7 +232,7 @@ def main():
         gh.update_github_repo(repo_name, 'homepage', doap_settings["homepage"])
 
     if doap_settings['default_branch'] == 'mainline':
-        push_command = "git push --mirror git github com:{}/{}".format(org, github_repo_name)
+        push_command = "git push --mirror git github com:{}/{}".format(gh.organization, github_repo_name)
     else:
         push_command_tpl = "git push --force git github com:{}/{} {}:mainline {}"
         refs = ["refs/heads/{}".format(branch) for branch in doap_settings['branches'] if branch not in 
("master", "mainline")]


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