diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-08 13:40:47 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-08 14:26:26 +0200 |
commit | ed72af63782c455ece6568b96849a29c43c79f1b (patch) | |
tree | 91904754bc5bf7e5ec16e927281c7f3dd572a52e /web/html | |
parent | 6e52439e6f23eb1879c7f9ee6113cfc677992639 (diff) | |
download | aur-ed72af63782c455ece6568b96849a29c43c79f1b.tar.gz aur-ed72af63782c455ece6568b96849a29c43c79f1b.tar.xz |
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>
Diffstat (limited to 'web/html')
0 files changed, 0 insertions, 0 deletions