summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-24 20:38:16 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-24 20:38:16 +0100
commit679b0d66506a59ddd49d5798281b2226fb2c1bd3 (patch)
tree8468cb9e057df0895144a6820dec69a3c29c5209
parent4bacfc13949bc977fda8b4373906091a82a24f93 (diff)
bin/pkg: fix_origin: Change into right directory (broke with pkg add)
-rwxr-xr-xbin/pkg1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index abc08a5..dc7cb7a 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -333,6 +333,7 @@ function exec_hook {
# Set the correct origin
function fix_origin {
+ cd $PDIR/$1
if ! git remote | grep -F origin &> /dev/null; then
git remote add origin $PKG_ROOT/$1
fi