LoginSignup
1
0

More than 5 years have passed since last update.

git-ftp で submodule が同期されないバグの対応法

Last updated at Posted at 2015-01-19

git-ftp がうまく動かない。

いつも通り git ftp push したら submodule のあるプロジェクトでエラーが発生。
fatal: Could not upload files., exiting... とか言われる。

まさに上記リンク先の状態。
先日までできてたのにいきなり出来なくなって焦る。

submodule を入れてないプロジェクトでは普通にうまく動いており、色々試すも解決せず。
なんか面倒になってきた。

バージョンを 0.9.0 に下げれば良い。

原因の特定を諦め、強攻策に出る。
バージョンを下げてみよう。

Terminal
$ git ftp version
git-ftp version 1.0.0
$ brew uninstall git-ftp
$ brew doctor
$ brew tap homebrew/boneyard
$ brew versions git-ftp
Warning: brew-versions is unsupported and will be removed soon.
You should use the homebrew-versions tap instead:
  https://github.com/Homebrew/homebrew-versions

1.0.2    git checkout cef35dd /usr/local/Library/Formula/git-ftp.rb
1.0.1    git checkout 4c6d729 /usr/local/Library/Formula/git-ftp.rb
1.0.0    git checkout 84171b1 /usr/local/Library/Formula/git-ftp.rb
0.9.0    git checkout e8a43d8 /usr/local/Library/Formula/git-ftp.rb
0.8.4    git checkout 0c05a6a /usr/local/Library/Formula/git-ftp.rb
0.8.1    git checkout 174acd6 /usr/local/Library/Formula/git-ftp.rb
0.8.0    git checkout 2e9aeb9 /usr/local/Library/Formula/git-ftp.rb
0.7.5    git checkout a5759f4 /usr/local/Library/Formula/git-ftp.rb
0.7.4    git checkout 3590598 /usr/local/Library/Formula/git-ftp.rb
0.7.3    git checkout fc7d3b5 /usr/local/Library/Formula/git-ftp.rb
0.7.2    git checkout c914321 /usr/local/Library/Formula/git-ftp.rb
0.7.1    git checkout 61fb163 /usr/local/Library/Formula/git-ftp.rb
0.6.0    git checkout 8f1b568 /usr/local/Library/Formula/git-ftp.rb
$ cd /usr/local
$ git checkout e8a43d8 /usr/local/Library/Formula/git-ftp.rb
$ brew install git-ftp
$ brew doctor
$ git ftp version
git-ftp version 0.9.0

これで解決した。

気が向いたら issue に上げておこう。。

参考にしたリンク集

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0