Commit Diff


commit - 4793d91bf3b955dcc0dab2308ff9ebea06504de3
commit + 909d120e02559eff42cb73dc284653b57b541660
blob - 5f97bf0aeacce20bc0aea86e5a9c00ef6391963c
blob + 9fc13a8a995147ee68196593283d8688f160f5e4
--- lib/worktree.c
+++ lib/worktree.c
@@ -1271,6 +1271,8 @@ update_blob(struct got_worktree *worktree,
 		    progress_cb, progress_arg);
 		if (blob2)
 			got_object_blob_close(blob2);
+		if (err)
+			goto done;
 		/*
 		 * Do not update timestamps of files with local changes.
 		 * Otherwise, a future status walk would treat them as