Commit 0f58026f98fdad502497af6b7bb1e8778ee88b42

Stefan Sperling 2021-04-05T17:51:07

add a missing STATUS_EXISTS notification in update_blob()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/worktree.c b/lib/worktree.c
index da4a3d7..d3e4837 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -1946,6 +1946,10 @@ update_blob(struct got_worktree *worktree,
 		    SHA1_DIGEST_LENGTH) == 0) {
 			err = sync_timestamps(worktree->root_fd,
 			    path, status, ie, &sb);
+			if (err)
+				goto done;
+			err = (*progress_cb)(progress_arg, GOT_STATUS_EXISTS,
+			    path);
 			goto done;
 		}
 	}