We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da29db commit fc8df06Copy full SHA for fc8df06
src/bootstrap/src/core/config/config.rs
@@ -2888,6 +2888,13 @@ impl Config {
2888
2889
let absolute_path = self.src.join(relative_path);
2890
2891
+ // NOTE: This check is required because `jj git clone` doesn't create directories for
2892
+ // submodules, they are completely ignored. The code below assumes this directory exists,
2893
+ // so create it here.
2894
+ if !absolute_path.exists() {
2895
+ t!(fs::create_dir_all(&absolute_path));
2896
+ }
2897
+
2898
// NOTE: The check for the empty directory is here because when running x.py the first time,
2899
// the submodule won't be checked out. Check it out now so we can build it.
2900
if !GitInfo::new(false, &absolute_path).is_managed_git_subrepository()
0 commit comments