[Below testing is done recently with repo version 1.25]
Google repo tool has been updated to support Windows OS. I am able to run basic commands like repo init and repo sync using repo tool on Windows (which makes use of MinGW Git on Windows). In my work I need to create a local mirror of a repository and then use it. repo tool works fine to create mirror repository.
Here are commands used to create mirror repository on local drive on Windows OS.
$ repo.cmd init -u <URL> -b <branch_name> -m <manifest_file_name> --mirror
$ repo.cmd sync --no-tags
But when I refer the above mirror to sync in other drive (C:\git-repo\test\mirror-testing\client) then it shows error.
Command:
$ repo.cmd init -u <URL> -b <Branch_name> -m <manifest_file_name> --reference="C:\\git-repo\\test\\mirror-testing\\mirror"
Error:
error: object directory C:/git-repo/test/mirror-testing/mirror/project/manifest.git/objects? does not exist; check .git/objects/info/alternates.
The above command creates alternates file in C:\git-repo\test\mirror-testing\client\project\manifest.git\objects\info\ directory and that file contains below path:
C:\git-repo\test\mirror-testing\mirror\project/manifest.git\objects
Has anyone used Google repo on Windows for creating mirror and syncing in other drive using as reference?