@@ -25,7 +25,7 module Redmine | |||||
25 | # Git executable name |
|
25 | # Git executable name | |
26 | GIT_BIN = Redmine::Configuration['scm_git_command'] || "git" |
|
26 | GIT_BIN = Redmine::Configuration['scm_git_command'] || "git" | |
27 |
|
27 | |||
28 |
class GitBranch < Branch |
|
28 | class GitBranch < Branch | |
29 | attr_accessor :is_default |
|
29 | attr_accessor :is_default | |
30 | end |
|
30 | end | |
31 |
|
31 | |||
@@ -112,7 +112,7 module Redmine | |||||
112 | default_bras = bras.select{|x| x.is_default == true} |
|
112 | default_bras = bras.select{|x| x.is_default == true} | |
113 | return default_bras.first.to_s if ! default_bras.empty? |
|
113 | return default_bras.first.to_s if ! default_bras.empty? | |
114 | master_bras = bras.select{|x| x.to_s == 'master'} |
|
114 | master_bras = bras.select{|x| x.to_s == 'master'} | |
115 |
master_bras.empty? ? bras.first.to_s : 'master' |
|
115 | master_bras.empty? ? bras.first.to_s : 'master' | |
116 | end |
|
116 | end | |
117 |
|
117 | |||
118 | def entry(path=nil, identifier=nil) |
|
118 | def entry(path=nil, identifier=nil) |
General Comments 0
You need to be logged in to leave comments.
Login now