镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix for #336 - #338

Closed
albertsun wants to merge 2 commits into
libgit2:developmentfrom
albertsun:repository-clone-at-branch
Closed

albertsun wants to merge 2 commits into
libgit2:developmentfrom
albertsun:repository-clone-at-branch

Conversation

@albertsun

Copy link
Copy Markdown
Contributor

Changes the name of the option to checkout_branch from branch to more closely match the libgit2 option here https://github.com/proxy/libgit2.github.com/libgit2/#HEAD/type/git_clone_options

@albertsun albertsun mentioned this pull request Mar 24, 2014
Comment thread ext/rugged/rugged_repo.c

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just reuse val here, instead of introducing another variable?

@albertsun

Copy link
Copy Markdown
Contributor Author

Yes, that's better. Was having trouble debugging something and thought that re-using that variable might have been causing trouble but it was unrelated.

Going to make a new branch and pull request to squash everything into one commit.

Comment thread test/repo_test.rb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be enough if you check that:

assert_equal "refs/heads/packed", repo.references["HEAD"].target_id

The other assertions you have in this test don't really have anything to do with the :checkout_branch option.

@albertsun
albertsun deleted the repository-clone-at-branch branch March 25, 2014 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants