gg git 다운로드git repo 대신 GitHub 프로젝트 디렉토리
묘사
내 환경:hg git 0.2.6
데이비드 0.7.1
git 1.7.4.4
수은 1.8.2
Mac OS X 10.6.7,Xcode 4
관찰:
내가 hg git을 사용하여 나에게 속하지 않는 GitHub repo를 복제할 때, 나는 GitHub 프로젝트 디렉터리를 얻었지 GitHub 프로젝트 디렉터리가 아니다.
내가 만든GitHub에서 리콜 프로토콜을 복제했을 때 나는 hggit에서 정확한 행위를 얻었다. 이 프로토콜들은 모두 이전에 hggit을 통해 GitHub로 전송된 본기인 Mercurial 리콜 프로토콜이다.
수은을 함유하다
$ hg clone git://github.com/gabriel/gh-unit.git destination directory: gh-unit importing Hg objects into Git Counting objects: 5137, done. Compressing objects: 100% (1938/1938), done. Total 5137 (delta 3470), reused 4579 (delta 3001) importing Git objects into Hg updating to branch default 97 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd gh-unit; ls .gitignore _g_h_test_operation_8h_source.html functions.html .hg/ _g_h_test_runner_8h_source.html functions_func.html .nojekyll _g_h_test_suite_8h_source.html functions_prop.html Info.plist _g_h_test_view_model_8h_source.html globals.html Nodes.xml _g_h_testing_8h_source.html globals_defs.html Tokens.xml _g_h_u_n_s_object_09_swizzle_8h_source.html hierarchy.html _building.html _g_h_unit_8h_source.html index.html _command_line.html _hudson.html installdox* _customizing.html _installing.html interface_g_h_async_test_case.html _env_variables.html _n_s_exception_09_g_h_test_failure_exceptions_8h_source.html interface_g_h_async_test_case.png _examples.html _n_s_value_09_g_h_value_formatter_8h_source.html interface_g_h_test_case.html _g_h_async_test_case_8h_source.html _test_macros.html interface_g_h_test_case.png _g_h_mock_n_s_h_t_t_p_u_r_l_response_8h_source.html annotated.html nav_f.png _g_h_mock_n_s_u_r_l_connection_8h_source.html bc_s.png nav_h.png _g_h_n_s_locale_09_mock_8h_source.html class_g_h_async_test_case-members.html open.png _g_h_test_09_j_unit_x_m_l_8h_source.html class_g_h_test_case-members.html pages.html _g_h_test_8h_source.html classes.html search/ _g_h_test_case_8h_source.html closed.png tab_a.png _g_h_test_group_09_j_unit_x_m_l_8h_source.html deprecated.html tab_b.png _g_h_test_group_8h_source.html doxygen.css tab_h.png _g_h_test_macros_8h.html doxygen.png tab_s.png _g_h_test_macros_8h_source.html files.html tabs.css
git로
$ git clone git://github.com/gabriel/gh-unit.git Cloning into gh-unit... remote: Counting objects: 5137, done. remote: Compressing objects: 100% (1938/1938), done. remote: Total 5137 (delta 3470), reused 4579 (delta 3001) Receiving objects: 100% (5137/5137), 21.17 MiB | 591 KiB/s, done. Resolving deltas: 100% (3470/3470), done. $ cd gh-unit; ls ls .git/ CHANGELOG.md Classes-IPhone/ Documentation/ Examples/ Libraries/ Makefile Project-IPhone/ Scripts/ Tests/ .gitignore Classes/ Classes-MacOSX/ Doxyfile LICENSE Libraries-MaxOSX/ Project/ README.md TODO.md XcodeConfig/
토론 #1
To add more info to this issue:
It appears that hg-git only has problems with certain GitHub repos. I was able to successfully clone git://github.com/schacon/hg-git.git with both git and hg-git.
토론 #2
To me it looks like that this happens on projects which use GitHub Pages, probably also only when the pages were the last thing updated.
Try executing $ hg update master
.
토론 #셋
Hmm. I couldn't verify whether $ hg update master
would work. The gh-unit repo came down fine this time on a fresh hg clone attempt. It looks like that repo's master branch was the most recently updated.
I'll try this next time I run into the problem and update the issue.
토론 #4
I had this problem happen with the Luggage repo using both Mercurial 1.9.1 and Mercurial 2.1.2 on Mac OS X 10.6.8.
$ hg clone git://github.com/unixorn/luggage.git
I made multiple clone attempts and it always resulted in the local repo showing the GitHub project rather than the source. I found this issue and tried $ hg update master
and it appeared to work (had reinstalled Hg 1.9.1 beforehand).
I had also had problems using $ hg fetch
to get the latest commits from the GH source repo.
$ hg fetch
abort: outstanding uncommitted merge
내가 아는 바에 의하면, 나는 사실상 합병할 어떠한 변경도 하지 않았다.가져온 후 $ hg status
검사를 할 때, 로컬 리포는 모든 원본 파일이 수정되었음을 보여 줍니다.
Reference
이 문제에 관하여(gg git 다운로드git repo 대신 GitHub 프로젝트 디렉토리), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/schacon/hg-git/issues/196텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)