Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.10
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
rugged /
[ HOME SHELL ]
Name
Size
Permission
Action
diff
[ DIR ]
drwxr-xr-x
attributes.rb
1.04
KB
-rw-r--r--
blob.rb
786
B
-rw-r--r--
branch.rb
713
B
-rw-r--r--
commit.rb
1.52
KB
-rw-r--r--
console.rb
392
B
-rw-r--r--
credentials.rb
1.24
KB
-rw-r--r--
diff.rb
466
B
-rw-r--r--
index.rb
4.72
KB
-rw-r--r--
object.rb
275
B
-rw-r--r--
patch.rb
832
B
-rw-r--r--
reference.rb
335
B
-rw-r--r--
remote.rb
219
B
-rw-r--r--
repository.rb
8.3
KB
-rw-r--r--
submodule_collection.rb
1.78
KB
-rw-r--r--
tag.rb
1.36
KB
-rw-r--r--
tree.rb
6.68
KB
-rw-r--r--
version.rb
229
B
-rw-r--r--
walker.rb
242
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : submodule_collection.rb
# Copyright (C) the Rugged contributors. All rights reserved. # # This file is part of Rugged, distributed under the MIT license. # For full terms see the included LICENSE file. module Rugged class SubmoduleCollection # call-seq: # submodules.setup_add(url, path[, options]) -> submodule # # Add a new +submodule+. # # This does <tt>"git submodule add"</tt> incuding fetch and checkout of the # submodule contents. # # - +url+: URL for the submodule's remote # - +path+: path at which the submodule should be created # # The +options+ hash accepts all options supported by Rugged::Remote#fetch # and the following: # :gitlink :: # (defaults to +true+) should workdir contain a # gitlink to the repository in +.git/modules+ vs. repository # directly in workdir. # # Returns the newly created +submodule+ def add(url, path, options = {}) submodule = setup_add(url, path, options) clone_submodule(submodule.repository, options) submodule.finalize_add end private # currently libgit2's `git_submodule_add_setup` initializes a repo # with a workdir for the submodule. libgit2's `git_clone` however # requires the target for the clone to be an empty dir. # # This provides a ghetto clone implementation that: # 1. fetches the remote # 2. sets up a master branch to be tracking origin/master # 3. checkouts the submodule def clone_submodule(repo, fetch_options) # the remote was just added by setup_add, no need to check presence repo.remotes['origin'].fetch(fetch_options) repo.branches.create('master','origin/master') repo.branches['master'].upstream = repo.branches['origin/master'] repo.checkout_head(strategy: :force) end end end
Close