From 8d504c6bb58f04ab0b600851ca0c22afc2245173 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 7 Jul 2017 07:13:46 -0400 Subject: fully qualify remote ref to avoid ambiguity This solves the problem of: $ asp checkout foo $ asp list-arches foo warning: refname 'packages/packages/foo' is ambiguous. x86_64 i686 Same for list-repos (duh, shared codepath) --- package.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.inc.sh b/package.inc.sh index e688ad0..a0e5ce4 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -181,7 +181,7 @@ package_get_repos_with_arch() { while read -r path; do IFS=/- read -r _ repo arch <<<"$path" printf '%s %s\n' "$repo" "$arch" - done < <(git ls-tree --name-only "$remote/packages/$pkgname" repos/) + done < <(git ls-tree --name-only "remotes/$remote/packages/$pkgname" repos/) } package_get_arches() { -- cgit v1.2.3-54-g00ecf