summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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
}
)