5
0
Fork 0
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:
f 2023-04-03 13:06:39 -03:00
commit 761c7de2b1

View file

@ -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