summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-24 12:33:17 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-24 12:33:17 +0100
commit44382c5d82bf3bdcab4ce4331ba626ec1e0ff02e (patch)
tree9aa525aea935eff2a24988ddc50bb333a7ec9142 /bin
parentacc0e8871d79ce62c41de03bbe31e265dd174902 (diff)
pkg: vcs_fix_origin: the remote is a directory in newer git versions
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index fb4b968..85ddef1 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -262,7 +262,7 @@ function vcs_status {
# Set the correct origin
function vcs_fix_origin {
- if [[ ! -f .git/remotes/origin ]] {
+ if [[ ! -e .git/remotes/origin ]] {
git remote add origin $PKG_ROOT/$1
}
git remote update &> /dev/null