[PATCH] git/update: Fix exception on encountering non-blob type
5 Mar
2019
5 Mar
'19
4:35 p.m.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- aurweb/git/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurweb/git/update.py b/aurweb/git/update.py index 39128f8..5228abc 100755 --- a/aurweb/git/update.py +++ b/aurweb/git/update.py @@ -284,7 +284,7 @@ def main(): str(commit.id)) if not isinstance(blob, pygit2.Blob): - die_commit("not a blob object: {:s}".format(treeobj), + die_commit("not a blob object: {:s}".format(str(treeobj.id)), str(commit.id)) if blob.size > max_blob_size: -- 2.20.1
2042
Age (days ago)
2042
Last active (days ago)
0 comments
1 participants
participants (1)
-
Johannes Löthberg