sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Rugged::SubmoduleCollection#clone_submodule

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

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/rugged-1.7.1/lib/rugged/submodule_collection.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--SubmoduleCollection-clone_submodule-for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/lib/rugged/submodule_collection.rbgit commit -m "better docs for Rugged::SubmoduleCollection#clone_submodule"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rugged--SubmoduleCollection-clone_submodule-for-pr

hub pull-request


# Celebrate!