diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-02-24 11:31:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-02-24 11:31:05 +0100 |
commit | 47283afe3374205659d9268bcc858f5ec832217d (patch) | |
tree | d17b0da9a079bb1ddcd533a2120b7c7cb0a7f60e /bin/pkg | |
parent | f6cc7a0a3e73335401cf44740b8f59807c932e9c (diff) |
pkg: vcs_fix_origin: Just check for the file
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |