Infrastructure | Python errors when pushing to GitLab (#307)



Title: GitLab

Peter Simonyi created an issue:

When I push to Gnome GitLab, the remote end prints out Python tracebacks. The push seems to work, though.

Here are the two pushes I've done:

$ git push psimonyi master
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 8 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 749 bytes | 749.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0), pack-reused 0
remote: /opt/gitlab/embedded/service/gitlab-shell/hooks/post-receive.d/post-receive: line 35: /home/admin/bin/git/gnome-post-receive-email: Permission denied
remote: Traceback (most recent call last):
remote:   File "/home/admin/bin/git/post-receive-notify-l10n", line 34, in <module>
remote:     main()
remote:   File "/home/admin/bin/git/post-receive-notify-l10n", line 25, in main
remote:     branch_name = get_branch_name(sys.stdin.readline().split()[2])
remote: IndexError: list index out of range
To gitlab.gnome.org:psimonyi/gnome-shell.git
   3309031fd..90ee4b50e  master -> master

Later, after I fixed the commit message:

$ git push psimonyi master --force
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 8 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 788 bytes | 788.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0), pack-reused 0
remote: /opt/gitlab/embedded/service/gitlab-shell/hooks/post-receive.d/post-receive: line 35: /home/admin/bin/git/gnome-post-receive-email: Permission denied
remote: Traceback (most recent call last):
remote:   File "/home/admin/bin/git/post-receive-notify-l10n", line 34, in <module>
remote:     main()
remote:   File "/home/admin/bin/git/post-receive-notify-l10n", line 25, in main
remote:     branch_name = get_branch_name(sys.stdin.readline().split()[2])
remote: IndexError: list index out of range
To gitlab.gnome.org:psimonyi/gnome-shell.git
 + 90ee4b50e...ec69fc141 master -> master (forced update)


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