summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-24 17:23:58 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-24 17:23:58 +0200
commit80af611ace20670adf126c66b2f31da2e8b7c755 (patch)
tree9d4e966dbbd5cfbad7a03913c04afc15b81ba5e5 /bin/pkg
parent178cefd0e570e36f566a9268a195894d6ef43cc1 (diff)
pkg: vcs_fix_origin: use $1 instead of $PWD
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
}
}