index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | remote.inc.sh | 4 |
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() { |