import subprocess
def stage_file(filename):
    return subprocess.call(["git", "add", filename])
@@ -78,16 +78,22 @@
 , %22add%22,
+ %22-A%22,
  filenam

Fix so that deleted files are added also - previous command gave a warning in older versions of git.