diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-01 18:56:54 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-01 18:56:54 +0200 |
commit | d54fa28f98da11d04c9cb1e77b4713a478a4a853 (patch) | |
tree | 2c9c86fa4d157a50ff4b6ed014bd3027e8b0ac99 /bin/pkg | |
parent | 37798b774aa37d03b82622cf52e43af4577ae3d2 (diff) |
pkg: Fixed vcs_fix_origin
Diffstat (limited to 'bin/pkg')
-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 } ) |