AGWA / AGWA/git-crypt

git-crypt fails after cloning the repo

オープン
#169 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
9.9k
フォーク
544
PR マージ指標
30日以内にマージされた PR はありません

説明

I have recently set up a repo with git-crypt. When cloning this repo from scratch in a new directory, I observe the following:

```
...
...
Receiving objects: 100% (17680/17680), 130.13 MiB | 5.16 MiB/s, done.
Resolving deltas: 100% (10261/10261), done.
git-crypt: Error: Unable to open key file - have you unlocked/initialized this repository yet?
error: external filter '"git-crypt" smudge --key-name=dev' failed 1
error: external filter '"git-crypt" smudge --key-name=dev' failed
fatal: path/to/file: smudge filter git-crypt-dev failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
```

A further `git checkout -f HEAD` fails with:
`git-crypt: Error: Unable to open key file - have you unlocked/initialized this repository yet?`

I surmise that `git-crypt unlock ` needs a file with the key, however, how does one provide this information during a `git clone`? Is there a workaround for this?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。