esrlabs / git-repo

repo - The multiple repository tool (also works on MS Windows!)
https://code.google.com/p/git-repo/
Apache License 2.0
432 stars 145 forks source link

"The system cannot find the file specified." - on repo init #48

Open lgrealis opened 7 years ago

lgrealis commented 7 years ago

We always get this message when cloning. It doesn't seem to cause an issue functionally but it does cause our users concern and raises a lot of questions.

We're on windows. It appears to be related to shallow links being created, the core part of the trace output is:

cmd /c mklink /J C:\wt\test\error.repo\manifests.git\refs C:\wt\test\error.repo\manifests.git\refs Using no symlinks for file from C:\wt\test\error.repo\manifests.git\shallow to C:\wt\test\error.repo\manifests.git\shallow cmd /c mklink /H C:\wt\test\error.repo\manifests.git\shallow C:\wt\test\error.repo\manifests.git\shallow The system cannot find the file specified. Using no symlinks for dir from C:\wt\test\error.repo\manifests.git\objects to C:\wt\test\error.repo\manifests.git\objects

I have attached the full output.

Git version: $ git --version git version 2.10.1.windows.1

Here's my gitconfig for reference: $ git config --global --list http.sslverify=false diff.tool=kdiff3 difftool.cmd="c:\Program Files\KDiff3\KDiff3.exe" merge.tool=kdiff3 mergetool.kdiff3.cmd="c:\Program Files\KDiff3\KDiff3.exe" $BASE $LOCAL $REMOTE -o $MERGED mergetool.kdiff3.keepbackup=false user.name=Leigh Grealis user.email=Leigh.Grealis@alcatel-lucent.com alias.sdm=c:/Users/lgrealis/My Documents/git/SDM-FE-Git-Assets/workspace/create-git-workspace.sh alias.status=diff --name-only core.excludesfile=c:/Users/lgrealis/ignorefiles.txt core.autocrlf=input core.ignorestat=false core.compression=0 core.pager=cat core.editor=vim core.fscache=true core.preloadindex=true portable.windowsnosymlinks=true filter.lfs.clean=git-lfs clean %f filter.lfs.smudge=git-lfs smudge %f filter.lfs.required=true lfs.url=http://localhost:8081/artifactory/api/lfs/WLS_GITLFS credential.helper=store review.https://gerrit.app.alcatel-lucent.com/gerrit/.username=lgrealis url.https://gerrit.app.alcatel-lucent.com/gerrit/.pushinsteadof=https://gerrit-nar.app.alcatel-lucent.com/gerrit/ url.ssh://lgrealis@gerrit.app.alcatel-lucent.com:29418.pushinsteadof=ssh://lgrealis@gerrit-nar.app.alcatel-lucent.com:29418 gc.auto=0 commit.template=C:/Users/lgrealis/git-template.txt

grv87 commented 5 years ago

Duplicate of #53?