summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-22 10:59:10 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-22 10:59:10 +0200
commit818867db248fb55f366197131eb7db7c93b5e2a0 (patch)
treed8d75582f9089b0e7de0ff1bcd6f1e3e8f311c87 /bin/pkg
parent828033a186b47a5139f2d71d7ecd2d5e014714ff (diff)
pkg: Unset git parameters before executing hooks
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 59c46cd..49160ff 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -237,7 +237,6 @@ function vcs_to_list {
}
function vcs_add {
- unset -m 'GIT_*'
if [[ $(list_type $1) == git ]] {
git clone "$PKG_ROOT/$1"
vcs_setup $1
@@ -413,6 +412,7 @@ function exec_hook {
function global_hook {
cd $PKG_DIR/$1
+ unset -M 'GIT_*'
case $2 in
post-add)
exec_hook $1 post-add