Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/remote.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'remote.inc.sh')
-rw-r--r--remote.inc.sh2
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() {