aurweb/git-interface
Lukas Fleischer ed72af6378 git-update: Improve error message for non-blob objects
When a repository contains a directory, a user is currently faced with
the following error message:

    remote: Traceback (most recent call last):
    remote:   File "hooks/update", line 194, in <module>
    remote:     if repo[treeobj.id].size > 250000:
    remote: AttributeError: '_pygit2.Tree' object has no attribute 'size'
    remote: error: hook declined to update refs/heads/master

Explicitly check for directories and other non-blob objects and display
a more intuitive message.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-06-08 14:26:26 +02:00
..
aurinfo.py Restructure scripts 2015-06-02 10:34:34 +02:00
config.mk Add a Makefile for the git-auth wrapper 2015-06-02 10:49:33 +02:00
git-auth.py Restructure scripts 2015-06-02 10:34:34 +02:00
git-auth.sh.in Add a Makefile for the git-auth wrapper 2015-06-02 10:49:33 +02:00
git-serve.py git-serve: Use pkgbase for errors about invalid names 2015-06-08 12:43:58 +02:00
git-update.py git-update: Improve error message for non-blob objects 2015-06-08 14:26:26 +02:00
Makefile Add a Makefile for the git-auth wrapper 2015-06-02 10:49:33 +02:00