commit - ef8d60312a7ca5c60477010ceec1137e05985a2e
commit + b88d214a31981ae2610d930c34d956143b03c523
blob - f7a518701e3aaaf962ce345785d00465bb4418ff
blob + 7bb6476174e9f1c13193dab9b4a12f2fecb8d3a7
--- lib/worktree.c
+++ lib/worktree.c
/* Path too long; install as a regular file. */
got_object_blob_rewind(blob);
return install_blob(worktree, ondisk_path, path,
- GOT_DEFAULT_FILE_MODE, st_mode, blob,
+ GOT_DEFAULT_FILE_MODE, GOT_DEFAULT_FILE_MODE, blob,
restoring_missing_file, reverting_versioned_file,
1, repo, progress_cb, progress_arg);
}
/* install as a regular file */
got_object_blob_rewind(blob);
err = install_blob(worktree, ondisk_path, path,
- GOT_DEFAULT_FILE_MODE, st_mode, blob,
+ GOT_DEFAULT_FILE_MODE, GOT_DEFAULT_FILE_MODE, blob,
restoring_missing_file, reverting_versioned_file, 1,
repo, progress_cb, progress_arg);
goto done;
/* install as a regular file */
got_object_blob_rewind(blob);
err = install_blob(worktree, ondisk_path, path,
- GOT_DEFAULT_FILE_MODE, st_mode, blob,
+ GOT_DEFAULT_FILE_MODE, GOT_DEFAULT_FILE_MODE, blob,
restoring_missing_file, reverting_versioned_file, 1,
repo, progress_cb, progress_arg);
goto done;
/* bad target path; install as a regular file */
got_object_blob_rewind(blob);
err = install_blob(worktree, ondisk_path, path,
- GOT_DEFAULT_FILE_MODE, st_mode, blob,
+ GOT_DEFAULT_FILE_MODE, GOT_DEFAULT_FILE_MODE, blob,
restoring_missing_file, reverting_versioned_file, 1,
repo, progress_cb, progress_arg);
} else if (errno == ENOTDIR) {