Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-08-05 08:31:42 -0400
committerDave Reisner <dreisner@archlinux.org>2014-08-05 08:31:42 -0400
commit0049934875f9cc4a7a40482767d3afb64bc5df8a (patch)
tree3c0b9a6d580090a9ee4cac9742929ae0f89116c2
parent1f5db8721297ddaecddcb9a94f9225aa45fff51d (diff)
cache even empty replies from the remote
-rw-r--r--remote.inc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.inc.sh b/remote.inc.sh
index 1554d3a..4e31696 100644
--- a/remote.inc.sh
+++ b/remote.inc.sh
@@ -3,7 +3,7 @@ declare -A refcache=()
remote_get_all_refs() {
local remote=$1
- if [[ -z ${refcache["$remote"]} ]]; then
+ if [[ -z ${refcache["$remote"]+cached} ]]; then
refcache["$remote"]=$(git ls-remote "$remote" 'refs/heads/packages/*' |
awk '{ sub(/refs\/heads\//, "", $2); print $2 }')
fi