Commit Graph

7 Commits

Author SHA1 Message Date
Taylor Blau
ca4eeba59d commands/command_migrate_import.go: install hooks
When migrating a repository to use Git LFS for the first time, a user is
also required to run 'git lfs install' inside of their newly-migrated
repository, lest they are unable to push.

This is due to the fact that 'git lfs install' writes
.git/hooks/pre-push, which Git invokes, in turn invoking Git LFS to push
Git LFS objects to the remote before sending Git objects.

Without this, we will push only plain-text pointer files, which puts the
pusher at risk of loosing data, or failing any provider-specific
verification/integrity checks.

So, let's run installHooks() to place hooks in the right place, which
makes the following command sequence possible:

  $ git lfs migrate import ...
  $ git push --all

Let's avoid running this in 'git lfs migrate info' and 'git lfs migrate
export', since neither require it.
2018-09-05 10:50:57 -04:00
Taylor Blau
351c81fc5d Merge branch 'master' into ttaylorr/prove 2018-07-23 11:12:04 -05:00
Taylor Blau
9afae6f6fc Merge branch 'master' into ttaylorr/prove 2018-07-17 12:54:38 -05:00
Taylor Blau
e0ed17dd0f t: move 't-migrate-fixtures.sh' to 'fixtures' 2018-07-11 13:18:25 -05:00
Taylor Blau
f2fd813c9d t: fix more source-ing from the wrong location 2018-07-11 13:18:25 -05:00
Taylor Blau
de9152049c t: load shell scripts from $(dirname) instead of 't' 2018-07-10 13:51:40 -05:00
Taylor Blau
219b7e0a3d t: prefix all existing tests with t- 2018-07-09 16:24:25 -05:00