Skip to content

Improved remote branch implements #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 8, 2015
Merged

Conversation

evianzhow
Copy link

Modified

  • - (BOOL)updateTrackingBranch:(GTBranch *)trackingBranch error:(NSError **)error

The original implement of this method wrongly considered remote tracking branch as local branch and added remote = . to .git/config which supposed to be remote = <remote_name>. This was caused by a wrong parameter objective-git used to pass to underlying method.
A test case is added to GTBranchSpec.m.

Added

  • - (BOOL)deleteBranch:(GTBranch *)branch fromRemote:(GTRemote *)remote withOptions:(NSDictionary *)options error:(NSError **)error progress:(void (^)(unsigned int current, unsigned int total, size_t bytes, BOOL *stop))progressBlock;

This Method added unpublish support for branches like GitHub client did, it does a git push <remote_name> :<dest> action using the objective-git private push method.

evianzhow added a commit that referenced this pull request Apr 8, 2015
@evianzhow evianzhow merged commit bed0a58 into master Apr 8, 2015
evianzhow pushed a commit that referenced this pull request Apr 10, 2015
* AustinChou-fix-remote-branch-tracking:
  Updated Branch Spec Test
  Fixed a bug which can cause remote branch considered as local
  add remote branch deletion feature
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.

1 participant