File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,14 @@ done
428
428
# Configure submodules
429
429
step_msg " configuring submodules"
430
430
431
+ # If we have no git directory then we are probably a tarball distribution
432
+ # and shouldn't attempt to load submodules
433
+ if [ ! -e ${CFG_SRC_DIR} .git ]
434
+ then
435
+ msg " git: no git directory. disabling submodules"
436
+ CFG_DISABLE_MANAGE_SUBMODULES=1
437
+ fi
438
+
431
439
# Have to be in the top of src directory for this
432
440
cd ${CFG_SRC_DIR}
433
441
@@ -575,6 +583,12 @@ putvar CFG_TARGET_TRIPLES
575
583
putvar CFG_C_COMPILER
576
584
putvar CFG_PREFIX
577
585
586
+ # Setting this again because it may have been changed
587
+ if [ $CFG_DISABLE_MANAGE_SUBMODULES ]
588
+ then
589
+ putvar CFG_DISABLE_MANAGE_SUBMODULES
590
+ fi
591
+
578
592
if head -n 1 ${CFG_SRC_DIR} src/snapshots.txt | grep -q ' ^T'
579
593
then
580
594
CFG_IN_TRANSITION=1
You can’t perform that action at this time.
0 commit comments