SSHFSのGitリポジトリ: '.git/logs/HEAD'に接続できません:無効な引数

SSHFSのGitリポジトリ: '.git/logs/HEAD'に接続できません:無効な引数

これは私のせいです:

fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Invalid argument

Etckeeperは今日まで働き続けています。システムへの最近の変更は、アップストリームのgitリポジトリだけです。これで、ディレクトリ.gitはsshfsマウントにあります。今、これが問題に関連していることを理解しています。 .gitディレクトリがNFSマウントからsshfsマウントに切り替えられると、問題が発生します。

エラーを発生させるコマンドの全体出力は次のとおりです。

[root@pc2 etc]# pacman -R cowsay
checking dependencies...
Packages (1) cowsay-3.03-9
Total Removed Size:  0.03 MiB
:: Running pre-transaction hooks...
(1/3) Performing snapper pre snapshots for the following configurations...
==> root: 182
(2/3) Etckeeper Pre-install
(3/3) Update git tracked list of installed packages
fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Invalid argument
error: command failed to execute correctly
:: Processing package changes...
(1/1) removing cowsay                                                                                         [#################################################################] 100%
:: Running post-transaction hooks...
(1/4) Etckeeper Post-install
(2/4) Update git tracked list of installed packages
fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Invalid argument
error: command failed to execute correctly
(3/4) Arming ConditionNeedsUpdate...
(4/4) Performing snapper post snapshots for the following configurations...
==> root: 183

次のステップを提案してください。

ベストアンサー1

sshfsマウントディレクトリを使用している場合は、以下も指定してください-o writeback_cache=no

sshfs -o writeback_cache=no [user@]host:/dir/ /localdir

バラよりhttps://github.com/libfuse/sshfs/issues/82もっと学ぶ。

おすすめ記事