Redmine 4.1.7
This commit is contained in:
parent
55458d3479
commit
3ca3c37487
103 changed files with 2426 additions and 431 deletions
|
@ -388,6 +388,18 @@ module Redmine
|
|||
nil
|
||||
end
|
||||
|
||||
def valid_name?(name)
|
||||
return false unless name.is_a?(String)
|
||||
|
||||
return false if name.start_with?('-', '/', 'refs/heads/', 'refs/remotes/')
|
||||
return false if name == 'HEAD'
|
||||
|
||||
git_cmd ['show-ref', '--heads', '--tags', '--quiet', '--', name]
|
||||
true
|
||||
rescue ScmCommandAborted
|
||||
false
|
||||
end
|
||||
|
||||
class Revision < Redmine::Scm::Adapters::Revision
|
||||
# Returns the readable identifier
|
||||
def format_identifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue