AGWA / AGWA/git-crypt

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

Abierto
#133 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
9.9k
Forks
544
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.