![]() This leads in overall to somewhat complicated behavior in special cases. Unfortunately both options ( -depth and -single-branch) have been faulty in the past and the use of shallow clones implicits unresolved problems (as you can read in the link I posted above), which is caused by the given history-rewrite. Therefore a shallow clone ( with the depth-option) only fetches only one single branch (at your requested depth). When creating a shallow clone with the -depth option, this is the default, unless -no-single-branch is given to fetch the histories near the tips of all branches." Lnh git clone sao chep, copy mt Git Repo (kho cha d n Git) v my ang local. "Clone only the history leading to the tip of a single branch, either specified by the -branch option or the primary branch remote's HEAD points at. The full clone offers new (all) branches: florianb$ git branch -aĭue to the shallow-description in the technical documentation, a " git-clone -depth 20 repo result commit chains with a length of at most 20." A shallow clone therefore should contain the requested depth of commits, from the tip of a branch.Īs - in addition - the documentation of git clone for the -single-branch-option describes: The behavior is correct, after the last revision the master-branch is (since this is the primary remote's HEAD) the only remote-branch in the repository: florianb$ git branch -a Though I can try it on this machine again, but it would be better to know what's wrong.Īny suggestions or hints will be more than welcome.Įdit: Answer summary: Since git version 1.8.3.2 the "-depth" and "-no-single-branch" need to be used together to get the same behavior as before. ![]() Tried also cloning another repo, it works well. ![]() Tried the same command on another machine, it works well: $ git clone -depth 1 git:///pythonwebkit.git What could be the problem? How to debug it? In this snippet two of the remote branches are not shown: $ git clone -depth 1 git:///pythonwebkit.git ![]() After cloning a remote repository it does not show any remote branch by -a option. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |