gitlabhq

https://github.com/gitlabhq/gitlabhq

Ruby

GitLab CE Mirror | Please open new issues in our issue tracker on GitLab.com

Gitlab::Git::RemoteRepository#same_repository?

Compares self to a Gitlab::Git::Repository. This implementation uses
'self.gitaly_repository' so that it will also work in the
GitalyRemoteRepository subclass defined in gitaly-ruby.

Source | Google | Stack overflow

Edit

git clone [email protected]:gitlabhq/gitlabhq.git

cd gitlabhq

open lib/gitlab/git/remote_repository.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--Git--RemoteRepository-same_repository--for-pr


# Commit to git

git add lib/gitlab/git/remote_repository.rbgit commit -m "better docs for Gitlab::Git::RemoteRepository#same_repository?"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Gitlab--Git--RemoteRepository-same_repository--for-pr

hub pull-request


# Celebrate!