Skip to content

Commit

Permalink
MNT: gitrepo: Update comment about '-c annex.largefiles' use
Browse files Browse the repository at this point in the history
With older versions of git-annex, 'git add' added content to the
annex, as described in ad0158c (BF(v7): gitrepo: Avoid adding files
to annex, 2019-09-23).  git-annex no longer does so as of 7.20191024.
  • Loading branch information
kyleam committed Feb 27, 2020
1 parent c7a9553 commit 80979cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datalad/support/gitrepo.py
Expand Up @@ -1186,7 +1186,9 @@ def add_(self, files, git=True, git_options=None, update=False):
add_out = self._git_custom_command(
files,
# Set annex.largefiles to prevent storing files in annex when
# GitRepo() is instantiated with a v6+ annex repo.
# GitRepo() is instantiated with a v6+ annex repo with older
# git-annex versions. This should be removed when
# GIT_ANNEX_MIN_VERSION at least 7.20191024.
['git', '-c', 'annex.largefiles=nothing', 'add'] +
assure_list(git_options) +
to_options(update=update) + ['--verbose']
Expand Down

0 comments on commit 80979cb

Please sign in to comment.