diff options
Diffstat (limited to 'functions.sh.in')
-rw-r--r-- | functions.sh.in | 5 |
1 files 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 |