#888 prevent to remove source_branch
This commit is contained in:
parent
3b41b1839b
commit
d6ed9920d6
4 changed files with 9 additions and 4 deletions
|
@ -114,5 +114,9 @@ module Project::RepositoryTrait
|
|||
def root_ref
|
||||
default_branch || "master"
|
||||
end
|
||||
|
||||
def root_ref? branch
|
||||
root_ref == branch
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue