]> dgit.raspbian.org Git - git-annex.git/blob
3b68a560cf818c8ee2d6d43acf7e0ce48c87c0ae
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 13"""
4  date="2018-08-28T14:02:37Z"
5  content="""
6 However, that leaves the case where .gitattributes configures
7 annex.largefiles, but that's been overridden for a file to add it to git,
8 and then the repo is cloned and initted with --version=6 (or upgraded).
9
10 Turns out that calling git status before enabling the smudge filter
11 prevents git from getting confused about the file being modified in this
12 case.
13
14 In the fresh clone, git has not populated the index with stat info
15 yet, and so it later runs the clean filter on the file, and that
16 respects the largefiles configuration, so the way the file is
17 stored in git is not taken into account.
18
19 Worked around this by adding a `git status` call to the v6
20 initialization/upgrade.
21 """]]