Skip to content

Conversation

@evianzhow
Copy link
Contributor

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 and others added 4 commits April 5, 2015 15:04
* 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
@joshaber joshaber self-assigned this Apr 8, 2015
Copy link
Member

Choose a reason for hiding this comment

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

The indentation here is a bit funny.

@joshaber
Copy link
Member

joshaber commented Apr 8, 2015

✨ Thanks! Some notes to address above.

@evianzhow evianzhow force-pushed the fix-remote-branch-tracking branch from 6d5989b to 0c87271 Compare April 10, 2015 14:29
@evianzhow
Copy link
Contributor Author

@joshaber check out our new commits, we updated some indentations

@joshaber
Copy link
Member

Awesome, thanks! 🤘

joshaber added a commit that referenced this pull request Apr 10, 2015
@joshaber joshaber merged commit 30219e2 into libgit2:master Apr 10, 2015
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