include header to define uint32_t, necessary on Mac OS X
[gitweb.git] / merge-tree.c
index 50528d5e438c62be409a9f7d252cedadfd52b15e..47181d422cd8b5ef0a01a52aede67b34034784d3 100644 (file)
@@ -151,7 +151,7 @@ static void *get_tree_descriptor(struct tree_desc *desc, const char *rev)
        unsigned char sha1[20];
        void *buf;
 
-       if (get_sha1(rev, sha1) < 0)
+       if (get_sha1(rev, sha1))
                die("unknown rev %s", rev);
        buf = fill_tree_descriptor(desc, sha1);
        if (!buf)