]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-diff: Check the return value of get_sha1()
authorLukas Fleischer <cgit@cryptocrack.de>
Tue, 20 Aug 2013 16:56:12 +0000 (18:56 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 20 Aug 2013 17:55:20 +0000 (19:55 +0200)
Sync with what we do everywhere else and check the return value of
get_sha1() instead of calling sha1_object_info() to validate the object.
Note that we later call lookup_commit_reference(), which checks that
both SHA1 values refer to commits, anyway.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>

No differences found