pull.py 238 B

1234567891011121314151617
  1. from dulwich import porcelain
  2. import os
  3. def ro():
  4. os.system("/etc/init.d/S01mount_ro start")
  5. def rw():
  6. os.system("/etc/init.d/S01mount_ro stop")
  7. localrep = "/home/"
  8. rw()
  9. unlock_file(unlockfile)
  10. porcelain.pull(localrep)
  11. ro()