Commit 960094b4eff0069984143900870f8486dbe0a08d

Stefan Sperling 2020-07-23T14:22:34

resolve an XXX remark in merge_file_cb()

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 c1f8b7e..f7a5187 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -2744,9 +2744,7 @@ merge_file_cb(void *arg, struct got_blob_object *blob1,
 		} else {
 			sb.st_mode = GOT_DEFAULT_FILE_MODE;
 			err = install_blob(a->worktree, ondisk_path, path2,
-			    /* XXX get this from parent tree! */
-			    GOT_DEFAULT_FILE_MODE,
-			    sb.st_mode, blob2, 0, 0, 0, repo,
+			    mode2, sb.st_mode, blob2, 0, 0, 0, repo,
 			    a->progress_cb, a->progress_arg);
 			if (err)
 				goto done;