[PATCH] Follow symlinks when adding changes to git

Sebastian Reuße seb at wirrsal.net
Fri Mar 23 11:11:01 CET 2018


Hello Lars,

Lars Flitter <password-store at larsflitter.de> writes:

> +	git -C "$INNER_GIT_DIR" add "$(readlink -f "$1")" || return

Since the patch doesn’t explicitly mention the motivation: I suppose
this is meant to cover the case where you are using a symlink as an
alias to another pass entry? In that case, running «pass edit foo» will
fail to commit the edited file. Good catch, I think I ran into this once
or twice.

Kind regards,

-- 
Insane cobra split the wood
Trader of the lowland breed
Call a jittney, drive away
In the slipstream we will stay


More information about the Password-Store mailing list