2021-06-18 15:51:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Translates different repo notations into ssh
|
|
|
|
case "$1" in
|
|
|
|
http*) echo "git@$(echo "$1" | cut -d'/' -f3):$(echo "$1" | cut -d'/' -f4)/$(echo "$1" | cut -d'/' -f5)" ;;
|
|
|
|
git:*) echo "$1" ;;
|
2021-09-21 15:45:29 +00:00
|
|
|
*) echo "${1:-git.jfischer.org}:${3:-$(git config user.name)}/${2:-$(basename $PWD)}.git" ;;
|
2021-06-18 15:51:57 +00:00
|
|
|
esac
|