Skip to content

Commit dfacdc2

Browse files
authored
refactor: remove unused git-subrepo, replaced with git submodules (#159)
* refactor: remove unused git-subrepo integration and update README with init script instructions * fix: correct initialization order in init script for proper execution * fix: correct path resolution in init script for proper application setup
1 parent 3b59646 commit dfacdc2

File tree

9 files changed

+19
-85
lines changed

9 files changed

+19
-85
lines changed

.github/workflows/acore-ci-cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19+
submodules: recursive
20+
1921
- uses: actions/setup-node@v4
2022
with:
2123
node-version: lts/*

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "apps/git-subrepo"]
2-
path = apps/git-subrepo
3-
url = https://github.com/ingydotnet/git-subrepo
41
[submodule "apps/bash-lib"]
52
path = apps/bash-lib
63
url = https://github.com/azerothcore/bash-lib

app.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/git-subrepo

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/git-utils/.gitrepo

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/git-utils/subrepo.sh

Lines changed: 0 additions & 40 deletions
This file was deleted.

apps/git-utils/subtree.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ About **Nodejs & npm**, you can install it from [here](https://nodejs.org/en/).
2626

2727
## Installation & Usage
2828

29+
### 0. Run the init scripts
30+
31+
Run the `init.sh` script to initialize the project and set up the required configuration files. This script will also clone the necessary submodules.
32+
33+
```bash
34+
./init.sh
35+
```
36+
2937
### 1. Configure your .env file
3038

3139
Create an `.env` file and copy the `.env.docker` content file to `.env`, configuring the variables as you prefer.

init.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Ensure submodules are initialized and updated on pull
5+
git config submodule.recurse true
6+
7+
# Initialize and update all submodules (including nested ones)
8+
echo "Initializing and updating submodules..."
9+
git submodule update --init --recursive

0 commit comments

Comments
 (0)