diff --git a/make/topdir.mk b/make/topdir.mk index 80f12ba8..296dce02 100644 --- a/make/topdir.mk +++ b/make/topdir.mk @@ -164,5 +164,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|'`" +git-ssh-%: + bash -c "`git remote get-url --push $* | sed 's|ssh://||; s|\([^/]\+\)/\(.*\)|LC_CDPATH=/\2 ssh -o SendEnv=LC_CDPATH \1|'`" +git-ssh: git-ssh-origin