diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2016-12-04 17:03:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-05 14:57:33 -0800 |
commit | d5eb3cf5e7e4274e12e0f249b3a026c029f3b02c (patch) | |
tree | 1b35de2367855a3ffecdc42245183793575842e5 /t/perf/p4211-line-log.sh | |
parent | Git 2.11 (diff) | |
download | tgif-d5eb3cf5e7e4274e12e0f249b3a026c029f3b02c.tar.xz |
git-p4: fix empty file processing for large file system backend GitLFS
If git-p4 tried to store an empty file in GitLFS then it crashed while
parsing the pointer file:
oid = re.search(r'^oid \w+:(\w+)', pointerFile, re.MULTILINE).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
This happens because GitLFS does not create a pointer file for an empty
file. Teach git-p4 this behavior to fix the problem and add a test case.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p4211-line-log.sh')
0 files changed, 0 insertions, 0 deletions