summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorXD Trol <milestonejxd@gmail.com>2022-01-17 23:29:04 +0800
committerXD Trol <milestonejxd@gmail.com>2022-01-26 01:47:20 +0000
commit630876f9e4910a4c91705c6cc98414123547419a (patch)
treeaa7c9374ce0aba3107c563ab7c3407c10b54e735 /docs
parent4aa8584ec6a57b24c7e41e6fccd0b554a264423d (diff)
downloadgit-repo-630876f9e4910a4c91705c6cc98414123547419a.tar.gz
init: add an option --enable-git-lfs-filter
It was reported that git-lfs did not work with git-repo. Specifically, `git read-tree -u` run by `repo sync` would fail git-lfs's smudge filter. See https://github.com/github/git-lfs/issues/1422. In fact, by the time `git read-tree -u` is run, the repository is not bare. It is just that, the working directory is not the same as the .git directory. git-lfs's filter should work. No one seems to have delved into that issue. Today, with newer versions of git-repo and git-lfs, that issue will not reproduce. Tested with - git 2.33, git-lfs 2.13 on macOS - git 2.17, git-lfs 2.3 on ubuntu So, it seems fine to add an option --enable-git-lfs-filter, default to false, and stat that it may not work with older versions of git and git-lfs in the help doc. Bug: https://crbug.com/gerrit/14516 Change-Id: I8d21854eeeea541e072f63d6b10ad1253b1a9826 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/328359 Tested-by: XD Trol <milestonejxd@gmail.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/internal-fs-layout.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/internal-fs-layout.md b/docs/internal-fs-layout.md
index af6a4523..0e830510 100644
--- a/docs/internal-fs-layout.md
+++ b/docs/internal-fs-layout.md
@@ -163,6 +163,7 @@ User controlled settings are initialized when running `repo init`.
163| repo.clonefilter | `--clone-filter` | Filter setting when using [partial git clones] | 163| repo.clonefilter | `--clone-filter` | Filter setting when using [partial git clones] |
164| repo.depth | `--depth` | Create shallow checkouts when cloning | 164| repo.depth | `--depth` | Create shallow checkouts when cloning |
165| repo.dissociate | `--dissociate` | Dissociate from any reference/mirrors after initial clone | 165| repo.dissociate | `--dissociate` | Dissociate from any reference/mirrors after initial clone |
166| repo.git-lfs | `--git-lfs` | Enable [Git LFS] support |
166| repo.mirror | `--mirror` | Checkout is a repo mirror | 167| repo.mirror | `--mirror` | Checkout is a repo mirror |
167| repo.partialclone | `--partial-clone` | Create [partial git clones] | 168| repo.partialclone | `--partial-clone` | Create [partial git clones] |
168| repo.partialcloneexclude | `--partial-clone-exclude` | Comma-delimited list of project names (not paths) to exclude while using [partial git clones] | 169| repo.partialcloneexclude | `--partial-clone-exclude` | Comma-delimited list of project names (not paths) to exclude while using [partial git clones] |
@@ -254,6 +255,7 @@ Repo will create & maintain a few files in the user's home directory.
254 255
255 256
256[git-config]: https://git-scm.com/docs/git-config 257[git-config]: https://git-scm.com/docs/git-config
258[Git LFS]: https://git-lfs.github.com/
257[git worktree]: https://git-scm.com/docs/git-worktree 259[git worktree]: https://git-scm.com/docs/git-worktree
258[gitsubmodules]: https://git-scm.com/docs/gitsubmodules 260[gitsubmodules]: https://git-scm.com/docs/gitsubmodules
259[manifest-format.md]: ./manifest-format.md 261[manifest-format.md]: ./manifest-format.md