summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index f5f6805..6817a90 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -298,7 +298,7 @@ function vcs_fix_origin {
vcs_setup $1
if [[ ! -r $GIT_DIR/remotes/origin && ! -r $GIT_DIR/refs/remotes/origin/HEAD ]] {
fgrep '[remote "origin"]' $GIT_DIR/config &> /dev/null ||
- git remote add origin $PKG_ROOT/${PWD:t}
+ git remote add origin $PKG_ROOT/$1
}
}