diff options
author | Dave Reisner <dreisner@archlinux.org> | 2017-07-07 07:13:46 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-07-07 07:13:46 -0400 |
commit | 8d504c6bb58f04ab0b600851ca0c22afc2245173 (patch) | |
tree | 6e27f261fdba2468b5670c68474fc2b85b71ce0d /package.inc.sh | |
parent | 2331e04e9fbf58ca81053d58d079957b39070e15 (diff) | |
download | asp32-8d504c6bb58f04ab0b600851ca0c22afc2245173.tar.xz |
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)
Diffstat (limited to 'package.inc.sh')
-rw-r--r-- | package.inc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |