Patch #3836 » redmine-git-no-wc.diff
lib/redmine/scm/adapters/git_adapter.rb | ||
---|---|---|
111 | 111 |
end |
112 | 112 | |
113 | 113 |
def num_revisions |
114 |
cmd = "#{GIT_BIN} --git-dir #{target('')} log --all --pretty=format:'' | wc -l" |
|
115 |
shellout(cmd) {|io| io.gets.chomp.to_i + 1} |
|
114 |
cmd = "#{GIT_BIN} --git-dir #{target('')} log --all --pretty=format:''" |
|
115 |
num = 1 |
|
116 |
shellout(cmd) {|io| num += 1} |
|
116 | 117 |
end |
117 | 118 | |
118 | 119 |
def revisions(path, identifier_from, identifier_to, options={}) |