fix: shallow
This commit is contained in:
@@ -19,21 +19,12 @@ jobs:
|
||||
- name: Clone repository with submodules
|
||||
run: |
|
||||
git clone --recurse-submodules -c "url.https://token:${{ gitea.token }}@git.datadunia.com/.insteadOf=https://git.datadunia.com/" https://git.datadunia.com/devops/wireguard-vpn.git
|
||||
|
||||
git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ gitea.token }}"
|
||||
|
||||
# 2. Matikan prompt interaktif agar tidak berhenti meminta password
|
||||
git config --global core.askPass ""
|
||||
|
||||
# 3. Jalankan clone secara rekursif
|
||||
# Sekarang proses submodule pasti akan membaca file ~/.gitconfig dan menemukan header tadi
|
||||
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
|
||||
|
||||
# 4. PENTING: Hapus konfigurasi segera setelah selesai (Cleanup)
|
||||
# Gunakan perintah ini di langkah 'if: always()' jika di Gitea Actions
|
||||
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
||||
git config --global --unset core.askPass
|
||||
|
||||
# Debug
|
||||
ls -la app/frontend
|
||||
|
||||
@@ -104,4 +95,6 @@ jobs:
|
||||
# git config --global --unset-all url."https://token:${{ gitea.token }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf
|
||||
# Hapus header dan config agar tidak tersimpan di ~/.gitconfig host
|
||||
git config --global --unset http.extraheader
|
||||
git config --global --unset core.askPass
|
||||
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
||||
git config --global --unset core.askPass
|
||||
Reference in New Issue
Block a user