summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-24 12:35:32 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-24 12:35:32 +0100
commit1b7c674d7f4f02b3d292a17d93fac883fd457424 (patch)
tree2b12c18c7f680d462e5faea127e0a090bbc6e491 /bin/pkg
parent44382c5d82bf3bdcab4ce4331ba626ec1e0ff02e (diff)
pkg: Whoops, really apply change to vcs_fix_origin
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 85ddef1..6beeda1 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -262,7 +262,7 @@ function vcs_status {
# Set the correct origin
function vcs_fix_origin {
- if [[ ! -e .git/remotes/origin ]] {
+ if [[ ! -r .git/remotes/origin && ! -r .git/refs/remotes/origin ]] {
git remote add origin $PKG_ROOT/$1
}
git remote update &> /dev/null