summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-04-20 02:23:14 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-20 02:23:14 +0200
commit0586215662320139dc1f5363dce7da3522463f91 (patch)
tree21bf11b43d6cc43b510b69721faeec32d0b5e310 /src/commit.c
parentd59305544e4825a7668d6d2fa9df2a0ffa21a3d6 (diff)
downloadlibgit2-0586215662320139dc1f5363dce7da3522463f91.tar.gz
tree-cache: don't error out on a childless invalidated entry
The code used to assume that there had to be data after the newline in a tree cache extension entry. This isn't true for a childless invalidated entry if it's the last one, as there won't be any children nor a hash to take up space. Adapt the off-by-one comparison to also work in this case. Fixes #633.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions