Avoid using git commit in direct mode, since in some situations it will read the full contents of files in the tree.
The assistant's commit code also always avoids git commit, for simplicity. Indirect mode sync still does a git commit -a to catch unstaged changes. Note that this means that direct mode sync no longer runs the pre-commit hook or any other hooks git commit might call. The git annex pre-commit hook action for direct mode is however explicitly run. (The assistant already ran git commit with hooks disabled, so no change there.)
This commit is contained in:
parent
4f4dba50cb
commit
03932212ec
9 changed files with 95 additions and 73 deletions
|
@ -2,4 +2,4 @@ Per forum post linking to this bug, git commit can be very slow when run in a fi
|
|||
|
||||
So, git annex sync should stop using git commit when in direct mode, and instead manually make its own commit. Git.Branch.commit and Git.Branch.update should be able to easily be used for this.
|
||||
|
||||
PS: this page was created elsewhere, and therefore not listed in bugs page
|
||||
> [[done]] --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue