[sysadmin-bin] Head is passed via stdin not arguments



commit b330902d5f0e309ca8995ecdd0ab879b25531358
Author: Andrea Veri <averi redhat com>
Date:   Fri Sep 13 15:30:39 2019 +0200

    Head is passed via stdin not arguments

 git/post-receive-notify-l10n | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/git/post-receive-notify-l10n b/git/post-receive-notify-l10n
index d3da20b..6578a02 100755
--- a/git/post-receive-notify-l10n
+++ b/git/post-receive-notify-l10n
@@ -22,7 +22,7 @@ def main():
     API_URL = 'https://l10n.gnome.org/api/v1/modules'
 
     module_name = get_module_name()
-    branch_name = get_branch_name(sys.argv[3])
+    branch_name = get_branch_name(sys.stdin.readline().split()[2])
 
     headers = {'User-Agent': 'post-receive-notify-l10n'}
     try:


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