Skip to content

Commit

Permalink
Some bug fixes, and increased the git timeout to 5 minutes for large …
Browse files Browse the repository at this point in the history
…pushes/pulls
  • Loading branch information
meltingice committed Nov 25, 2010
1 parent 7e0dedb commit c6f5249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fswatcher.rb
Expand Up @@ -24,6 +24,8 @@ def initialize()
FileUtils.mkdir_p RubyDrop.config['rubydrop_root']
end

Git.git_timeout = 300

# Now check to see if it's a git repository or not
Dir.chdir(RubyDrop.config['rubydrop_root']) do
if !File.directory? ".git" then
Expand Down Expand Up @@ -76,6 +78,7 @@ def start()

unless remote_head == local_head then
@log.info("Remote is ahead, fast-forwarding...")
@git.native('reset', {:hard => true}, 'HEAD')
@git.native('pull', {}, 'origin', 'master')
@log.info("Fast-forward finished!")
end
Expand Down

0 comments on commit c6f5249

Please sign in to comment.