Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local clone causes error with Ansible backup files #7

Open
leok610 opened this issue Jan 16, 2025 · 0 comments
Open

Local clone causes error with Ansible backup files #7

leok610 opened this issue Jan 16, 2025 · 0 comments

Comments

@leok610
Copy link

leok610 commented Jan 16, 2025

I cloned the repository twice with GitHub CLI, once using the path CiscoDevNet/data-center-development and once with xanderstevenson/data-center-development. Both failed with the error invalid path 'nx-os/ansible_nx-os/backup/192.168.254.101_2024-07-04_15:19:55.cfg'.

The result was an empty repository with all of the files staged for deletion. I restored the files and got all of them except the problematic nx-os/ansible_nx-os/backup directory. It will probably clone fine if you exclude the backup directory.

Image

Xander Stevenson Clone

PS C:\Git-Repositories\Cisco> gh repo clone xanderstevenson/data-center-development
Cloning into 'data-center-development'...
remote: Enumerating objects: 2949, done.
remote: Counting objects: 100% (380/380), done.
remote: Compressing objects: 100% (215/215), done.
remote: Total 2949 (delta 186), reused 317 (delta 155), pack-reused 2569 (from 1)
Receiving objects: 100% (2949/2949), 1.55 MiB | 10.94 MiB/s, done.
Resolving deltas: 100% (1256/1256), done.
error: invalid path 'nx-os/ansible_nx-os/backup/192.168.254.101_2024-07-04_15:19:55.cfg'
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 :/'

failed to run git: exit status 128

CiscoDevNet Clone

PS C:\Git-Repositories\Cisco> gh repo clone ciscodevnet/data-center-development
Cloning into 'data-center-development'...
remote: Enumerating objects: 3822, done.
remote: Counting objects: 100% (667/667), done.
remote: Compressing objects: 100% (459/459), done.
remote: Total 3822 (delta 204), reused 547 (delta 140), pack-reused 3155 (from 2)
Receiving objects: 100% (3822/3822), 2.20 MiB | 12.65 MiB/s, done.
Resolving deltas: 100% (1559/1559), done.
error: invalid path 'nx-os/ansible_nx-os/backup/192.168.254.101_2024-07-04_15:19:55.cfg'
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 :/'

failed to run git: exit status 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant