Commit Diff
--- lib/worktree.c +++ lib/worktree.c @@ -1721,6 +1721,7 @@ get_file_status(unsigned char *status, struct stat *sb memcpy(id.hash, ie->staged_blob_hash, sizeof(id.hash)); else memcpy(id.hash, ie->blob_hash, sizeof(id.hash)); + id.algo = got_repo_get_hash_algorithm(repo); fd1 = got_opentempfd(); if (fd1 == -1) {