MediaChange: actually commit the data files to the repository

This commit is contained in:
Danny Robson 2019-07-07 14:23:03 +10:00
parent c1d5bb4469
commit 9c58df8aee

View File

@ -253,7 +253,15 @@ class MediaChange(Change):
localpath = self.page.replace(':', os.path.sep)
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
###############################################################################