2013-10-22 1 views

답변

12

windows에서 msysgit을 사용하는 경우 regression on msysgit1.8.4 for git-svn이 있습니다.
bash 쉘이 아닌 CMD에서 실행될 때 나타나는 것처럼 보입니다. 따라서 쉘에서 동일한 명령을 시도해 볼 수 있습니다.

SubGit 이것은 svn에서 git repo로 전환하기위한 훨씬 완벽하고 강력한 도구입니다. Listen to his author at GitMinutes #22.


는 회귀가 될 진행 입니다 고정 (현재 - 3 월 2013 년 - 'next' branch of the git repo에서) 는 Bas Bossinkin the comments 확인 :

I just verified that it is fixed in git 1.8.5.2.msysgit.0

jiangxin에 의해, commit 7fbd42 참조 :

Tvangeste found that the " relative_path " function could not work properly on Windows if "in" and "prefix" have DOS drive prefix (such as "C:/windows"). ($gmane/234434)

E.g., When execute: test-path-utils , relative_path "C:/a/b" "D:/x/y" should return " C:/a/b ", but returns " ../../C:/a/b ", which is wrong.

So make relative_path honor DOS drive prefix.

+3

Thx. 버전 1.8.3 잘 작동 보인다. – meow

+3

@amy 예, 다운 그레이드는 하나의 해결책입니다. 이 문제는 1.8.5에서 해결되어야합니다. – VonC

+0

@VonC git 1.8.5.2.msysgit.0에서 수정 된 것을 확인했습니다. –

0

이 probl을 보았습니다. em - 별도의 드라이브에 작업 디렉토리와 자식 디렉토리를 사용할 때 (제 경우에는 네트워크 드라이브에있는 자식) --separate-git-dir을 사용할 때. 임시 해결책으로 mklink (admin으로 실행)를 사용하여 대상 드라이브를 매핑 할 수 있음을 확인했습니다. mklink/d "C : \ temp \ my-git-dir" "D : \ my-git-repo \"

그러면 다음과 같이 실행 가능한 repo 및 작업 디렉토리가 생성됩니다. git clone --no-hardlinks repo_url - 구분 -git-dir = D :/my-git-repo C :/temp/my-working-dir