MediaChange: actually commit the data files to the repository
This commit is contained in:
parent
c1d5bb4469
commit
9c58df8aee
10
doku2git.py
10
doku2git.py
@ -253,7 +253,15 @@ class MediaChange(Change):
|
|||||||
localpath = self.page.replace(':', os.path.sep)
|
localpath = self.page.replace(':', os.path.sep)
|
||||||
localdir = os.path.dirname(localpath)
|
localdir = os.path.dirname(localpath)
|
||||||
|
|
||||||
yield f'cp "{self._attic(src)}" "{os.path.join(dst, localdir)}"'
|
dstpath = os.path.join(dst, localdir)
|
||||||
|
|
||||||
|
cmds = [
|
||||||
|
f'cp "{self._attic(src)}" "{dstpath}"',
|
||||||
|
f'git add "{dstpath}"'
|
||||||
|
]
|
||||||
|
|
||||||
|
for c in cmds:
|
||||||
|
yield c
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user