AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Git clone branch depth 111/21/2023 ![]() ![]() ![]() > Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. cocoapods-stats from `/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-stats-1.0.0/lib/cocoapods_plugin.rb` Integrating target `Pods-tmp` (`tmp.xcodeproj` project) Writing Manifest in `Pods/Manifest.lock` Writing Xcode project file to `Pods/Pods.xcodeproj` Installing target `AFNetworking` iOS 7.0 > Copying AFNetworking from `/Users/spt/Library/Caches/CocoaPods/Pods/External/AFNetworking/a89537f30f70e582e6915e54db66302b` to `Pods/AFNetworking`Ĭomparing resolved specification to the sandbox manifest Implies -single-branch unless -no-single-branch is given to fetch the histories near the tips of all branches. $ /usr/local/bin/git clone /var/folders/0k/9w0xj_jx24nfd8sn0fjxlx8r0000gn/T/d20170612-8899-c64mthĬloning into '/var/folders/0k/9w0xj_jx24nfd8sn0fjxlx8r0000gn/T/d20170612-8899-c64mth'. However, git clone -depth supports an additional argument -no-single-branch -depth Create a shallow clone with a history truncated to the specified number of commits. > Pre-downloading: `AFNetworking` from ``, branch `2974` Using `ARCHS` setting to build architectures of target `Pods-tmp`: (``) Thats what I ended up doing when switching from releng/12.2 to releng/13.0. Code: rm -Rf
git clone -o freebsd -depth 1 -b releng/13.1
.
What Im proposing is do a fresh shallow clone when you want to switch branches. preloading /usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib Jose said: Youre doing a shallow clone on your leaf nodes. then the clone_argument() function would bypass the -depth 1 parameter always. ![]() It still try ls-remote and delete :branch setting from the options and return the :commit inside options. Since git 1.7.10, you can also limit the amount of history you clone by cloning a single branch, like so: git clone remote url -branch branchname -single-branch folder This specific hack is useful when youâre working with long running and divergent branches, or if you have lots branches and only ever need to work with a few of them. Seems the first line "return options unless options" would not return the options even if I have the :branch setting in Podfile. I found the "git.rb" a file from cocoapods-downloader was added a new function for pre-processing the download options.Ĩ months ago Added first batch of test coverageÄ¢9 output = Git.execute_command('git', command)Ĩ months ago Allow download strategies to preprocess download optionsÄ£0 match = /^( )\t./.match(output) It can poll, fetch, checkout, branch, list, merge, tag, and push repositories. ![]() no-single-branch is given to fetch the histories near the tips of all branches.We always using :git => xxx, :branch => 'xxx' for each pod lib, we're using a private GitHub to hold the libs. Introduction The git plugin provides fundamental git operations for Jenkins projects. Today I had some time at hand, and I confirmed that the option is the cause by reading the git-clone(1) manpage, it notes that:Ĭreate a shallow clone with a history truncated to the specified number of commits. I reflected why it happened after work, the only difference I can remember was that I clone that repo with the option -depth, that is, it was a shallow clone to save some disk space. It worked after I changed it to +refs/heads/*:refs/remotes/origin/*. It never happens before, and it happened when I was in a rush to rebase my code, as someone in my team pushed his code.Īfter searching, it seemed that the configuration of fetch of that repo was different(this Stack Overflow thread for example) than before, it was specified that only master can be fetched. Last week I came into a problem with Git, that I can't fetch the remote branch that I just pushed to. ![]()
0 Comments
Read More
Leave a Reply. |