AGWA / AGWA/git-crypt

Add parameter for git-crypt lock to ignore already locked repository

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

説明

I'm writing a BASH script that operates on some data stored inside an encrypted repo, and I want to ensure that repo is locked when the script finishes regardless of anything. So, I'm setting a BASH trap that locks the repo, but in case of normal flow, I'm also locking repo earlier.

Currently `git-crypt lock` in the trap fails with error message `Error: this repository is already locked.` and exit code 1.

Would be nice to have a parameter to make `git-crypt lock` to behave like `mkdir -p` - if the repository is already locked, just do nothing and exit with code 0.

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

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

評価

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

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

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