Add parameter for git-crypt lock to ignore already locked repository
未关闭
- 主要语言
- 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 还没有评估数据。