summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-14 10:34:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-14 10:34:22 +0200
commit676d4198642c6a4bb91d6831eb82a1673ee4d1ab (patch)
tree787a336e52baaa774cd4afd069403d936ff54134 /bin/pkg
parent97ab6624ea0ec446587060bb57865403c54b2499 (diff)
pkg: set the proper git-config for push.default to avoid the new warnings
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg11
1 files changed, 7 insertions, 4 deletions
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 {