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.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.inc.sh b/remote.inc.sh
index db6d318..01031e0 100644
--- a/remote.inc.sh
+++ b/remote.inc.sh
@@ -45,8 +45,8 @@ remote_is_tracking() {
remote_get_tracked_refs() {
local remote=$1
- mapfile -t "$2" < <(git for-each-ref --format='%(refname)' "refs/remotes/$1" |
- awk -F'/' -v "remote=$1" '{ print "packages/" $NF }')
+ mapfile -t "$2" < \
+ <(git for-each-ref --format='%(refname:strip=3)' "refs/remotes/$remote")
}
remote_update_refs() {