From d54fa28f98da11d04c9cb1e77b4713a478a4a853 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 1 Jul 2009 18:56:54 +0200 Subject: pkg: Fixed vcs_fix_origin --- bin/pkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index d163277..d504044 100755 --- a/bin/pkg +++ b/bin/pkg @@ -292,8 +292,8 @@ function vcs_status ( function vcs_fix_origin ( vcs_setup $1 - if [[ ! -r $GIT_DIR/remotes/origin && ! -r $GIT_DIR/refs/remotes/origin/HEAD ]] { - fgrep -q '[remote "origin"]' $GIT_DIR/config || + if [[ ! -r .git/remotes/origin && ! -r .git/refs/remotes/origin/HEAD ]] { + fgrep -q '[remote "origin"]' .git/config || git remote add origin $PKG_ROOT/$1 } ) -- cgit v1.2.3