summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-24 12:32:04 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-24 12:32:04 +0100
commitacc0e8871d79ce62c41de03bbe31e265dd174902 (patch)
tree46c70287b9613f1fd7a25edba73d837a5df9200f
parentff5d9a5b255bb5703369d959cee913fc06fc33fb (diff)
parent47283afe3374205659d9268bcc858f5ec832217d (diff)
Merge branch 'master' of /home/derf/var/packages_root/core/
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 6a7dbae..fb4b968 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
}