"""Restore :attr:`prod` attribute, and check if the production copy has drifted."""
self.prod = deploy.ProductionCopy(".")
try:
+ # simulate the action of `git status`, based on cmd_status()'s call to
+ # refresh_cache() in builtin-commit.c
+ shell.call("git", "update-index", "-q", "--unmerged", "--refresh")
r1 = shell.eval("git", "diff-files", "--name-only").strip()
r2 = shell.eval("git", "diff-index", "--name-only", "HEAD").strip()
if r1 or r2: