From ef5be1b07f4ca86ee455bfa61e7e90cfb209c282 Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Wed, 11 Jul 2012 23:07:23 +0200 Subject: [PATCH] Updater tweaks and comment. --- lib/updater/git_updater.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/updater/git_updater.rb b/lib/updater/git_updater.rb index 42857d5e..4d907070 100644 --- a/lib/updater/git_updater.rb +++ b/lib/updater/git_updater.rb @@ -21,15 +21,15 @@ require File.expand_path(File.dirname(__FILE__) + '/updater') class GitUpdater < Updater def is_installed? - %x[git #{repo_directory_arguments()} status 2>&1] =~ /On branch/ ? true : false + %x[git status "#{repo_directory_arguments()}" 2>&1] =~ /On branch/ ? true : false end def local_revision_number - # TODO + # TODO - not sure if git has revision numbers? maybe we don't have to check and just do a pull? end def update - %x[git #{repo_directory_arguments()} pull] + %x[git "#{repo_directory_arguments()}" pull] end protected