From 2f04d93b37172e591220a4fbb1d606d3ddd4b4a4 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 11 Sep 2014 15:04:47 -0400 Subject: forward update requessts to the remote --- package.inc.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'package.inc.sh') diff --git a/package.inc.sh b/package.inc.sh index d382b41..4088990 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -12,15 +12,7 @@ package_init() { (( do_update )) || return 0 - if ! remote_is_tracking "${!2}" "$pkgname"; then - package_update "$pkgname" "${!2}" || return 1 - fi -} - -package_update() { - local pkgname=$1 remote=$2 - - git fetch "$remote" "packages/$pkgname" + remote_is_tracking "${!2}" "$pkgname" || remote_update_refs "${!2}" "$pkgname" } package_find_remote() { -- cgit v1.2.3-70-g09d2