diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-14 10:34:22 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-14 10:34:22 +0200 |
commit | 676d4198642c6a4bb91d6831eb82a1673ee4d1ab (patch) | |
tree | 787a336e52baaa774cd4afd069403d936ff54134 /bin/pkg | |
parent | 97ab6624ea0ec446587060bb57865403c54b2499 (diff) |
pkg: set the proper git-config for push.default to avoid the new warnings
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 { |