summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-01 18:56:54 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-01 18:56:54 +0200
commitd54fa28f98da11d04c9cb1e77b4713a478a4a853 (patch)
tree2c9c86fa4d157a50ff4b6ed014bd3027e8b0ac99 /bin/pkg
parent37798b774aa37d03b82622cf52e43af4577ae3d2 (diff)
pkg: Fixed vcs_fix_origin
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
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
}
)