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:
- sh.call("git", "add", file)
- sh.call("git", "commit", "--allow-empty", "-am", "Protection commit")
- sh.call("git", "reset", "HEAD~")
+ 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):