Fixing not recognizing different SHA1 object.

genofire mentioned another problem in #5 which should be solved with this patch. The return value of `git diff` was not preserved and a later check did not work.