mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-21 07:51:12 +00:00
remove trailing white-spaces from lib/redmine/scm/adapters/git_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13928 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6097e247f4
commit
4dbdff1479
@ -25,7 +25,7 @@ module Redmine
|
|||||||
# Git executable name
|
# Git executable name
|
||||||
GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"
|
GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"
|
||||||
|
|
||||||
class GitBranch < Branch
|
class GitBranch < Branch
|
||||||
attr_accessor :is_default
|
attr_accessor :is_default
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ module Redmine
|
|||||||
default_bras = bras.select{|x| x.is_default == true}
|
default_bras = bras.select{|x| x.is_default == true}
|
||||||
return default_bras.first.to_s if ! default_bras.empty?
|
return default_bras.first.to_s if ! default_bras.empty?
|
||||||
master_bras = bras.select{|x| x.to_s == 'master'}
|
master_bras = bras.select{|x| x.to_s == 'master'}
|
||||||
master_bras.empty? ? bras.first.to_s : 'master'
|
master_bras.empty? ? bras.first.to_s : 'master'
|
||||||
end
|
end
|
||||||
|
|
||||||
def entry(path=nil, identifier=nil)
|
def entry(path=nil, identifier=nil)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user