treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked
[gitweb.git] / builtin / merge-index.c
index 1c3427c36caa40e8740b090c44a048201e81c706..2d1b6db6bd7a33f838a50deceb108ee1ad468db1 100644 (file)
@@ -22,7 +22,7 @@ static int merge_entry(int pos, const char *path)
                if (strcmp(ce->name, path))
                        break;
                found++;
-               sha1_to_hex_r(hexbuf[stage], ce->sha1);
+               oid_to_hex_r(hexbuf[stage], &ce->oid);
                xsnprintf(ownbuf[stage], sizeof(ownbuf[stage]), "%o", ce->ce_mode);
                arguments[stage] = hexbuf[stage];
                arguments[stage + 4] = ownbuf[stage];