Skip to content

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.

2 participants