From 676d4198642c6a4bb91d6831eb82a1673ee4d1ab Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 14 May 2009 10:34:22 +0200 Subject: pkg: set the proper git-config for push.default to avoid the new warnings --- bin/pkg | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 1204ad3..2da3d4f 100755 --- a/bin/pkg +++ b/bin/pkg @@ -247,10 +247,13 @@ function vcs_to_list { } function vcs_add { - case $(list_type $1) in - git) git clone "$PKG_ROOT/$1" ;; - *) die "$1: Cannot handle repository format '$(list_type $1)'\n" ;; - esac + if [[ $(list_type $1) == git ]] { + git clone "$PKG_ROOT/$1" + vcs_setup $1 + git config push.default matching + } else { + die "$1: Cannot handle repository format '$(list_type $1)'\n" + } } function vcs_log { -- cgit v1.2.3