From f8da77d2edb9b8a52913fb29af426445f2fb369b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Oct 2008 12:15:58 +0200 Subject: bin/pkg: Don't assume a package has the correct origin --- bin/pkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pkg b/bin/pkg index 23aa855..12e0bed 100755 --- a/bin/pkg +++ b/bin/pkg @@ -175,13 +175,13 @@ vcs_log () { } vcs_upgrade () { - [[ -d .hg ]] && {hg pull --update ; return} - [[ -d .git ]] && {git pull ; return} + [[ -d .hg ]] && {hg pull --update $PKG_ROOT/$PWD:t; return} + [[ -d .git ]] && {git pull $PKG_ROOT/$PWD:t ; return} } vcs_push () { - [[ -d .hg ]] && {hg push ; return} - [[ -d .git ]] && {git push ; return} + [[ -d .hg ]] && {hg push $PKG_ROOT/$PWD:t ; return} + [[ -d .git ]] && {git push $PKG_ROOT/$PWD:t; return} } vcs_status () { -- cgit v1.2.3