]> dgit.raspbian.org Git - git-annex.git/blob
5e1db4285ffa4f7021fd2ba1eecea95a339fecf7
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 2"""
4  date="2020-05-21T16:54:48Z"
5  content="""
6 I don't think there's any reason why git should need to allocate memory for
7 the whole file. All it's doing is reading the file and sending it over a
8 pipe, and git-annex actually hangs up the pipe before reading anything.
9 So git could read a few bytes, try to send them, and give up.
10
11 The last time I looked at it, in [[!commit a96972015dd76271b46432151e15d5d38d7151ff]]
12 having git-annex close the pipe immediately did avoid git overallocating
13 memory. I don't know what else git-annex could do to avoid any bad behavior
14 from git.
15
16 If your git is older than 2.5, it would certainly explain it, since the
17 above workaround needed git 2.5.
18 """]]