teach 'update' cmd how to install hooks in bare repos#671
Merged
technoweenie merged 4 commits intomasterfrom Sep 23, 2015
Merged
teach 'update' cmd how to install hooks in bare repos#671technoweenie merged 4 commits intomasterfrom
technoweenie merged 4 commits intomasterfrom
Conversation
Contributor
Author
|
Had to add Ideally, the tests would warn and probably skip tests that should fail when this happens. |
Contributor
Author
|
Confirmed this improves the process for migrating a repository to use LFS with BFG: $ git clone --mirror https://github.com/mventurelli/relichunterszero
Cloning into bare repository 'relichunterszero.git'...
$ cd relichunterszero.git
$ java -jar /path/to/bfg.jar --no-blob-protection --convert-to-git-lfs "*.{wav,mp3}"
$ git lfs init # sets up pre-push hook for the migrated repoAfter that, set up the remote and push away! |
technoweenie
added a commit
that referenced
this pull request
Sep 23, 2015
teach 'update' cmd how to install hooks in bare repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of requiring
git lfs updateto be run inside a git working directory, this relies onlfs.LocalGitDirto install the hooks in the correct place./cc @ttaylorr since you touched hook code recently. Though I'm pretty sure I'm the one that added the invalid repo error.