Nimdy / Dedicated_Valheim_Server_Script

Valheim Server Manager . Supports: ValheimPlus, Bepinex, Multi-world, Multi-Lang, Update, Backup, Restore and more: Built for Linux
GNU Affero General Public License v3.0
697 stars 120 forks source link

Unable to clone repo wiki in Windows [BUG] #280

Closed rwaight closed 2 years ago

rwaight commented 2 years ago

Describe the bug This bug is specific to Windows (using both Git CMD and PowerShell). It appears that the How-to-Valheim-Server-Port-Configuration:-DigitalOcean,-AWS,-Azure-and-GCP.md file generates an invalid path when attempting to clone the repo wiki git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.wiki.git in Windows.

Post your logs: PowerShell

PS D:\github> git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.wiki.git
Cloning into 'Dedicated_Valheim_Server_Script.wiki'...
remote: Enumerating objects: 486, done.
Receiving objects:  70%a 0), reused 0 (delta 0), pack-reused 486 eceiving objects:  69% (336/486)
Receiving objects: 100% (486/486), 63.39 KiB | 2.11 MiB/s, done.
Resolving deltas: 100% (301/301), done.
error: invalid path 'How-to-Valheim-Server-Port-Configuration:-DigitalOcean,-AWS,-Azure-and-GCP.md'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

PS D:\github> cd .\Dedicated_Valheim_Server_Script.wiki\
PS D:\github\Dedicated_Valheim_Server_Script.wiki> git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        deleted:    Advanced-User-Tips-for-Valheim-Dedicated-Servers.md
        deleted:    Common-Questions-and-Helpful-Tips-for-Valheim-Dedicated-Servers.md
        deleted:    Connecting-Manually-to-Valheim-Dedicated-Servers-through-Steam.md
        deleted:    Home.md
        deleted:    How-to-Migrate-Valheim-Map-Data-from-server-to-server.md
        deleted:    How-to-Update-Your-Valheim-Server.md
        deleted:    How-to-Valheim-Server-Port-Configuration:-DigitalOcean,-AWS,-Azure-and-GCP.md
        deleted:    How-to-mod-your-Valheim-Server-with-ease.md
        deleted:    How-to-secure-your-Dedicated-Valheim-Server-(Ubuntu)-and-maximize-your-Administrative-experience-with-the-Advance-Menu-System.md
        deleted:    How-to-set-automatic-backups-for-Valheim-Server-World-Data-in-Ubuntu.md
        deleted:    How-to-use-the-Menu-Script.md
        deleted:    Top-10-Reason-your-Server-is-not-working-and-how-to-fix.md
        deleted:    _Footer.md

PS D:\github\Dedicated_Valheim_Server_Script.wiki>

Git CMD:

d:\github-test2>git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.wiki.git
Cloning into 'Dedicated_Valheim_Server_Script.wiki'...
remote: Enumerating objects: 486, done.
remote: Total 486 (delta 0), reused 0 (delta 0), pack-reused 486 eceiving objects:  68% (331/486)
Receiving objects: 100% (486/486), 63.64 KiB | 3.35 MiB/s, done.
Resolving deltas: 100% (301/301), done.
error: invalid path 'How-to-Valheim-Server-Port-Configuration:-DigitalOcean,-AWS,-Azure-and-GCP.md'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

d:\github-test2>cd Dedicated_Valheim_Server_Script.wiki
d:\github-test2\Dedicated_Valheim_Server_Script.wiki>git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        deleted:    Advanced-User-Tips-for-Valheim-Dedicated-Servers.md
        deleted:    Common-Questions-and-Helpful-Tips-for-Valheim-Dedicated-Servers.md
        deleted:    Connecting-Manually-to-Valheim-Dedicated-Servers-through-Steam.md
        deleted:    Home.md
        deleted:    How-to-Migrate-Valheim-Map-Data-from-server-to-server.md
        deleted:    How-to-Update-Your-Valheim-Server.md
        deleted:    How-to-Valheim-Server-Port-Configuration:-DigitalOcean,-AWS,-Azure-and-GCP.md
        deleted:    How-to-mod-your-Valheim-Server-with-ease.md
        deleted:    How-to-secure-your-Dedicated-Valheim-Server-(Ubuntu)-and-maximize-your-Administrative-experience-with-the-Advance-Menu-System.md
        deleted:    How-to-set-automatic-backups-for-Valheim-Server-World-Data-in-Ubuntu.md
        deleted:    How-to-use-the-Menu-Script.md
        deleted:    Top-10-Reason-your-Server-is-not-working-and-how-to-fix.md
        deleted:    _Footer.md

d:\github-test2\Dedicated_Valheim_Server_Script.wiki>

To Reproduce Steps to reproduce the behavior:

  1. Open a PowerShell or Git CMD terminal, navigate to a directory for cloning git repos
  2. Issue git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.wiki.git
  3. Receive error

Expected behavior The repo wiki should be able to be cloned successfully, for example cloning the repo wiki works in Linux:

user@debian:~/github$ git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.wiki.git
Cloning into 'Dedicated_Valheim_Server_Script.wiki'...
remote: Enumerating objects: 486, done.
remote: Total 486 (delta 0), reused 0 (delta 0), pack-reused 486
Receiving objects: 100% (486/486), 63.64 KiB | 2.12 MiB/s, done.
Resolving deltas: 100% (301/301), done.
user@debian:~/github$ cd Dedicated_Valheim_Server_Script.wiki/
user@debian:~/github/Dedicated_Valheim_Server_Script.wiki$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
user@debian:~/github/Dedicated_Valheim_Server_Script.wiki$

Screenshots N/A

Hosting Company (please complete the following information): N/A

Additional context N/A, was hoping to clone a local copy of the docs for review on my Windows PC. Since this can be accomplished in Linux, it is not a big issue. Thought to open the issue to make you aware, thanks.

Nimdy commented 2 years ago

Thank you. I renamed the wiki title for that section. :)

rwaight commented 2 years ago

Awesome, thank you very much!