import sys
+import os.path
from wizard import command, deploy, shell
def main(argv, baton):
options, args = parse_args(argv, baton)
- sh = shell.Shell()
wc = deploy.WorkingCopy(".")
+ wc.verify()
+ wc.verifyConfigured()
+ # worst case scenario protection
+ for file in wc.application.parametrized_files:
+ shell.call("git", "add", file)
+ shell.call("git", "commit", "--allow-empty", "-am", "Protection commit")
+ shell.call("git", "reset", "HEAD~")
wc.prepareConfig()
def parse_args(argv, baton):