From 7a8b3a8e7d252d5e8393d032e70e3c1deedd8c61 Mon Sep 17 00:00:00 2001 From: Pete Dietl Date: Thu, 23 May 2019 17:30:28 -0500 Subject: Allow for git remote url to end in aports.git, (i.e., allow SSH git remotes) --- functions.sh.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.sh.in b/functions.sh.in index 22c2c49..fb474a5 100644 --- a/functions.sh.in +++ b/functions.sh.in @@ -87,8 +87,9 @@ readconfig() { APORTSDIR=$(cd "$HOME/aports"; pwd -P) else if [ -n "$gitbase" ]; then - case $(git config remote.origin.url) in - */aports) APORTSDIR=$gitbase ;; + case $(git remote get-url origin) in + # '.git' for SSH URLs, and no suffix for HTTPS URLs + */aports|*/aports.git) APORTSDIR=$gitbase ;; *) APORTSDIR= ;; esac else -- cgit v1.2.3