Add a HOWTO for setting up a standalone git daemon
[gitweb.git] / builtin-blame.c
index 20966b9e02449617d4fc9a91bbd616ce37ae547a..104521e673e37cc9d2c9a7f54dae5b3d4d957ea5 100644 (file)
@@ -182,9 +182,8 @@ struct scoreboard {
 
 static int cmp_suspect(struct origin *a, struct origin *b)
 {
-       int cmp = hashcmp(a->commit->object.sha1, b->commit->object.sha1);
-       if (cmp)
-               return cmp;
+       if (a->commit != b->commit)
+               return 1;
        return strcmp(a->path, b->path);
 }
 
@@ -1963,7 +1962,7 @@ static struct commit *fake_working_tree_commit(const char *path, const char *con
                                die("Cannot lstat %s", path);
                        read_from = path;
                }
-               fin_size = st.st_size;
+               fin_size = xsize_t(st.st_size);
                buf = xmalloc(fin_size+1);
                mode = canon_mode(st.st_mode);
                switch (st.st_mode & S_IFMT) {