mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 10:56:21 +00:00
Merge branch 'issue-9361' into panel.sutty.nl
This commit is contained in:
commit
761c7de2b1
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ class Site
|
|||
def commit(file:, usuarie:, message:, remove: false)
|
||||
file = [file] unless file.respond_to? :each
|
||||
|
||||
# Cargar el árbol actual
|
||||
rugged.index.read_tree rugged.head.target.tree
|
||||
|
||||
file.each do |f|
|
||||
remove ? rm(f) : add(f)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue