did_git_checkout_scripts = False
try:
# create repository
- shell.call("git", "init")
+ shell.call("git", "--git-dir=.git", "init")
did_git_init = True
# configure our remote
shell.call("git", "remote", "add", "origin", repo)
# perform the initial fetch
shell.call("git", "fetch", "origin")
# soft reset to our tag
- shell.call("git", "reset", tag)
+ shell.call("git", "reset", tag, "--")
# checkout the .scripts directory
shell.call("git", "checkout", ".scripts")
did_git_checkout_scripts = True