Allow for git remote url to end in aports.git, (i.e., allow SSH git remotes)
This commit is contained in:
parent
6310405af8
commit
7a8b3a8e7d
@ -87,8 +87,9 @@ readconfig() {
|
|||||||
APORTSDIR=$(cd "$HOME/aports"; pwd -P)
|
APORTSDIR=$(cd "$HOME/aports"; pwd -P)
|
||||||
else
|
else
|
||||||
if [ -n "$gitbase" ]; then
|
if [ -n "$gitbase" ]; then
|
||||||
case $(git config remote.origin.url) in
|
case $(git remote get-url origin) in
|
||||||
*/aports) APORTSDIR=$gitbase ;;
|
# '.git' for SSH URLs, and no suffix for HTTPS URLs
|
||||||
|
*/aports|*/aports.git) APORTSDIR=$gitbase ;;
|
||||||
*) APORTSDIR= ;;
|
*) APORTSDIR= ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user