diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } ) |