From 80af611ace20670adf126c66b2f31da2e8b7c755 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 24 Apr 2009 17:23:58 +0200 Subject: pkg: vcs_fix_origin: use $1 instead of $PWD --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pkg b/bin/pkg index f5f6805..6817a90 100755 --- a/bin/pkg +++ b/bin/pkg @@ -298,7 +298,7 @@ function vcs_fix_origin { vcs_setup $1 if [[ ! -r $GIT_DIR/remotes/origin && ! -r $GIT_DIR/refs/remotes/origin/HEAD ]] { fgrep '[remote "origin"]' $GIT_DIR/config &> /dev/null || - git remote add origin $PKG_ROOT/${PWD:t} + git remote add origin $PKG_ROOT/$1 } } -- cgit v1.2.3