Skip to content

Local clone causes error with Ansible backup files #7

@leok610

Description

@leok610

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions