Skip to content

Commit e0fae94

Browse files
committed
fixup! feat(sub_module): use branch argument to define submodule
1 parent d6c6107 commit e0fae94

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/sub-module-sync.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -x
22

3+
git submodule foreach 'git fetch'
34
git submodule foreach 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'

0 commit comments

Comments
 (0)