topdir.mk: Add target git-ssh

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-10-18 18:26:02 +00:00
commit 1d0d09d11c

View file

@ -163,3 +163,6 @@ list-files echo-files:
list-text-files echo-text-files:
@$(LIST_VCS_FILES) -ft
git-ssh:
bash -c "`git remote get-url --push origin | sed 's|ssh://||; s|\([^/]\+\)/\(.*\)|LC_CDPATH=/\2 ssh -o SendEnv=LC_CDPATH \1|'`"