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:
authorDave Reisner <dreisner@archlinux.org>2014-08-02 16:51:23 -0400
committerDave Reisner <dreisner@archlinux.org>2014-08-02 16:51:23 -0400
commitcd150f45de90f3e8864a2882c0cac660a5f2111e (patch)
treecfdf53af67c76a376149129ec848d30845e4fdb4 /remote.inc.sh
parentb4bd7fe863a1801e58a17c619737484848e2c0ca (diff)
remote: avoid need for command substitution
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() {