diff options
-rw-r--r-- | remote.inc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.inc.sh b/remote.inc.sh index d2521bb..04ec16e 100644 --- a/remote.inc.sh +++ b/remote.inc.sh @@ -8,7 +8,7 @@ remote_get_all_refs() { remote_has_package() { local remote=$1 pkgname=$2 - [[ $(git ls-remote "$remote" "$pkgname") ]] + git ls-remote --heads --exit-code "$remote" "$pkgname" &>/dev/null } remote_is_tracking() { |