summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-24 11:31:05 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-24 11:31:05 +0100
commit47283afe3374205659d9268bcc858f5ec832217d (patch)
treed17b0da9a079bb1ddcd533a2120b7c7cb0a7f60e /bin/pkg
parentf6cc7a0a3e73335401cf44740b8f59807c932e9c (diff)
pkg: vcs_fix_origin: Just check for the file
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 8a3f609..54f8b80 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -262,9 +262,9 @@ function vcs_status {
# Set the correct origin
function vcs_fix_origin {
- if ! git remote | grep -F origin &> /dev/null; then
+ if [[ ! -f .git/remotes/origin ]] {
git remote add origin $PKG_ROOT/$1
- fi
+ }
git remote update &> /dev/null
}