Skip to content

Commit

Permalink
turn off the git-diff $PAGER by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cpjolicoeur committed Jun 11, 2009
1 parent 3d42389 commit 8ed5b79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
= Cerberus Changelog

== Version 0.6.1
Bugfix for issues with git-diff output

* Projects using the Git SCM were not getting the full diff output in their
Publishers

== Version 0.6
New Ruby builder, bugfixes, and refactoring

Expand Down
4 changes: 2 additions & 2 deletions lib/cerberus/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Cerberus
HOME = File.expand_path(ENV['CERBERUS_HOME'] || '~/.cerberus')
CONFIG_FILE = "#{HOME}/config.yml"

LOCK_WAIT = 30 * 60 #30 minutes
LOCK_WAIT = 30 * 60 # 30 minutes

VERSION = '0.6'
VERSION = '0.6.1'
end
1 change: 1 addition & 0 deletions lib/cerberus/scm/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def update!
encoded_url = (@config[:scm, :url].include?(' ') ? "\"#{@config[:scm, :url]}\"" : @config[:scm, :url])
@new = true
@status = execute("clone", "#{encoded_url} #{@path}", false)
execute('config', 'pager.diff false') # turn off git-diff $PAGER by default
if branch = @config[:scm, :branch]
execute('branch', "--track #{branch} #{remote_head}")
execute('checkout', branch)
Expand Down

0 comments on commit 8ed5b79

Please sign in to comment.